diff --git a/include/pocketpy/export.h b/include/pocketpy/export.h index c6487dd5..5e573266 100644 --- a/include/pocketpy/export.h +++ b/include/pocketpy/export.h @@ -5,7 +5,6 @@ #define PK_EXPORT __declspec(dllexport) #define PK_SYS_PLATFORM 0 #elif __EMSCRIPTEN__ - #include #define PK_EXPORT EMSCRIPTEN_KEEPALIVE #define PK_SYS_PLATFORM 1 #elif __APPLE__ @@ -31,4 +30,4 @@ #else #define PK_EXPORT #define PK_SYS_PLATFORM 6 -#endif \ No newline at end of file +#endif diff --git a/include/pocketpy/pocketpy_c.h b/include/pocketpy/pocketpy_c.h index 27730e46..d00cdcfd 100644 --- a/include/pocketpy/pocketpy_c.h +++ b/include/pocketpy/pocketpy_c.h @@ -2,6 +2,9 @@ #define POCKETPY_C_H #ifdef __cplusplus +#if __EMSCRIPTEN__ +#include +#endif extern "C" { #endif