mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
Update export.h
This commit is contained in:
parent
50bed95bbb
commit
9fdac89b4b
@ -2,15 +2,13 @@
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define PK_EXPORT __declspec(dllexport)
|
#define PK_EXPORT __declspec(dllexport)
|
||||||
#elif __APPLE__
|
|
||||||
#define PK_EXPORT __attribute__((visibility("default"))) __attribute__((used))
|
|
||||||
#elif __EMSCRIPTEN__
|
#elif __EMSCRIPTEN__
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#define PK_EXPORT EMSCRIPTEN_KEEPALIVE
|
#define PK_EXPORT EMSCRIPTEN_KEEPALIVE
|
||||||
#else
|
#else
|
||||||
#define PK_EXPORT
|
#define PK_EXPORT __attribute__((visibility("default"))) __attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PK_LEGACY_EXPORT PK_EXPORT
|
#define PK_LEGACY_EXPORT PK_EXPORT inline
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user