blueloveTH 2 years ago
parent
commit
f8126215df
1 changed files with 5 additions and 5 deletions
  1. 5 5
      include/pocketpy/export.h

+ 5 - 5
include/pocketpy/export.h

@@ -22,24 +22,24 @@
     #define PK_SYS_PLATFORM     "emscripten"
 #elif __APPLE__
     #include <TargetConditionals.h>
-    #include <dlfcn.h>
-    #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 <dlfcn.h>
+        #define PK_SUPPORT_DYLIB    2
     #else
     #   error "Unknown Apple platform"
     #endif
     #define PK_EXPORT __attribute__((visibility("default")))
 #elif __ANDROID__
-    #include <dlfcn.h>
-    #define PK_SUPPORT_DYLIB    2
+    #define PK_SUPPORT_DYLIB    0
     #define PK_EXPORT __attribute__((visibility("default")))
     #define PK_SYS_PLATFORM     "android"
 #elif __linux__