From 9fdac89b4bf546b769695d001c5a004c1d4a1a5e Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Sat, 24 Jun 2023 03:58:47 +0800 Subject: [PATCH] Update export.h --- src/export.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/export.h b/src/export.h index 80b45276..f885c6bd 100644 --- a/src/export.h +++ b/src/export.h @@ -2,15 +2,13 @@ #ifdef _WIN32 #define PK_EXPORT __declspec(dllexport) -#elif __APPLE__ -#define PK_EXPORT __attribute__((visibility("default"))) __attribute__((used)) #elif __EMSCRIPTEN__ #include #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