Compare commits

...

2 Commits

Author SHA1 Message Date
blueloveTH
6ccd0b9178 Update CMakeLists.txt 2024-11-07 18:16:27 +08:00
blueloveTH
a8c5668d89 some fix 2024-11-07 18:13:42 +08:00
2 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,10 @@ endif()
if(UNIX)
target_link_libraries(${PROJECT_NAME} m)
if(PK_ENABLE_OS)
target_link_libraries(${PROJECT_NAME} dl)
endif()
endif()
if(PK_MODULE_WIN32)
target_link_libraries(${PROJECT_NAME} winmm.lib)

View File

@ -1,6 +1,6 @@
#include "pocketpy/pocketpy.h"
#if PK_IS_DESKTOP_PLATFORM
#if PK_IS_DESKTOP_PLATFORM && PK_ENABLE_OS
#ifdef _WIN32
void* LoadLibraryA(const char*);