浏览代码

Update export.h

BLUELOVETH 2 年之前
父节点
当前提交
9fdac89b4b
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/export.h

+ 2 - 4
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 <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