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"
|
#define PK_SYS_PLATFORM "emscripten"
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
#include <TargetConditionals.h>
|
#include <TargetConditionals.h>
|
||||||
#include <dlfcn.h>
|
|
||||||
#define PK_SUPPORT_DYLIB 2
|
|
||||||
#if TARGET_IPHONE_SIMULATOR
|
#if TARGET_IPHONE_SIMULATOR
|
||||||
// iOS, tvOS, or watchOS Simulator
|
// iOS, tvOS, or watchOS Simulator
|
||||||
#define PK_SYS_PLATFORM "ios"
|
#define PK_SYS_PLATFORM "ios"
|
||||||
|
#define PK_SUPPORT_DYLIB 0
|
||||||
#elif TARGET_OS_IPHONE
|
#elif TARGET_OS_IPHONE
|
||||||
// iOS, tvOS, or watchOS device
|
// iOS, tvOS, or watchOS device
|
||||||
#define PK_SYS_PLATFORM "ios"
|
#define PK_SYS_PLATFORM "ios"
|
||||||
|
#define PK_SUPPORT_DYLIB 0
|
||||||
#elif TARGET_OS_MAC
|
#elif TARGET_OS_MAC
|
||||||
// Other kinds of Apple platforms
|
|
||||||
#define PK_SYS_PLATFORM "darwin"
|
#define PK_SYS_PLATFORM "darwin"
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#define PK_SUPPORT_DYLIB 2
|
||||||
#else
|
#else
|
||||||
# error "Unknown Apple platform"
|
# error "Unknown Apple platform"
|
||||||
#endif
|
#endif
|
||||||
#define PK_EXPORT __attribute__((visibility("default")))
|
#define PK_EXPORT __attribute__((visibility("default")))
|
||||||
#elif __ANDROID__
|
#elif __ANDROID__
|
||||||
#include <dlfcn.h>
|
#define PK_SUPPORT_DYLIB 0
|
||||||
#define PK_SUPPORT_DYLIB 2
|
|
||||||
#define PK_EXPORT __attribute__((visibility("default")))
|
#define PK_EXPORT __attribute__((visibility("default")))
|
||||||
#define PK_SYS_PLATFORM "android"
|
#define PK_SYS_PLATFORM "android"
|
||||||
#elif __linux__
|
#elif __linux__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user