From f8126215df142215f015c3b4b93ad28427b1bcf2 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 15 Jul 2023 20:29:53 +0800 Subject: [PATCH] ... --- include/pocketpy/export.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/pocketpy/export.h b/include/pocketpy/export.h index 6b4c7674..6bc5dced 100644 --- a/include/pocketpy/export.h +++ b/include/pocketpy/export.h @@ -22,24 +22,24 @@ #define PK_SYS_PLATFORM "emscripten" #elif __APPLE__ #include - #include - #define PK_SUPPORT_DYLIB 2 #if TARGET_IPHONE_SIMULATOR // iOS, tvOS, or watchOS Simulator #define PK_SYS_PLATFORM "ios" + #define PK_SUPPORT_DYLIB 0 #elif TARGET_OS_IPHONE // iOS, tvOS, or watchOS device #define PK_SYS_PLATFORM "ios" + #define PK_SUPPORT_DYLIB 0 #elif TARGET_OS_MAC - // Other kinds of Apple platforms #define PK_SYS_PLATFORM "darwin" + #include + #define PK_SUPPORT_DYLIB 2 #else # error "Unknown Apple platform" #endif #define PK_EXPORT __attribute__((visibility("default"))) #elif __ANDROID__ - #include - #define PK_SUPPORT_DYLIB 2 + #define PK_SUPPORT_DYLIB 0 #define PK_EXPORT __attribute__((visibility("default"))) #define PK_SYS_PLATFORM "android" #elif __linux__