Parcourir la source

Merge pull request #193 from pmp-p/cpplinkage

ensure em_asm template get C++ linkage ( cmake builds )
BLUELOVETH il y a 2 ans
Parent
commit
2475d9b194
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      include/pocketpy/export.h

+ 3 - 3
include/pocketpy/export.h

@@ -5,8 +5,7 @@
     #define PK_EXPORT __declspec(dllexport)
     #define PK_SYS_PLATFORM     0
 #elif __EMSCRIPTEN__
-    #include <emscripten.h>
-    #define PK_EXPORT EMSCRIPTEN_KEEPALIVE
+    #define PK_EXPORT
     #define PK_SYS_PLATFORM     1
 #elif __APPLE__
     #include <TargetConditionals.h>
@@ -31,4 +30,5 @@
 #else
     #define PK_EXPORT
     #define PK_SYS_PLATFORM     6
-#endif
+#endif
+