This commit is contained in:
blueloveTH 2023-07-15 20:29:53 +08:00
parent b96e246842
commit f8126215df

View File

@ -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__