Update export.h

This commit is contained in:
BLUELOVETH 2023-06-24 03:58:47 +08:00 committed by GitHub
parent 50bed95bbb
commit 9fdac89b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,15 +2,13 @@
#ifdef _WIN32
#define PK_EXPORT __declspec(dllexport)
#elif __APPLE__
#define PK_EXPORT __attribute__((visibility("default"))) __attribute__((used))
#elif __EMSCRIPTEN__
#include <emscripten.h>
#define PK_EXPORT EMSCRIPTEN_KEEPALIVE
#else
#define PK_EXPORT
#define PK_EXPORT __attribute__((visibility("default"))) __attribute__((used))
#endif
#define PK_LEGACY_EXPORT PK_EXPORT
#define PK_LEGACY_EXPORT PK_EXPORT inline
#endif