mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
b96e246842
commit
f8126215df
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user