From 2157523313f4a66d2d99a69d34861c340e3bffed Mon Sep 17 00:00:00 2001 From: pmp-p Date: Tue, 16 Jan 2024 11:35:04 +0100 Subject: [PATCH] just don't use keep alive at all for static build --- include/pocketpy/export.h | 2 +- include/pocketpy/pocketpy_c.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/pocketpy/export.h b/include/pocketpy/export.h index 5e573266..284ed63d 100644 --- a/include/pocketpy/export.h +++ b/include/pocketpy/export.h @@ -5,7 +5,7 @@ #define PK_EXPORT __declspec(dllexport) #define PK_SYS_PLATFORM 0 #elif __EMSCRIPTEN__ - #define PK_EXPORT EMSCRIPTEN_KEEPALIVE + #define PK_EXPORT #define PK_SYS_PLATFORM 1 #elif __APPLE__ #include diff --git a/include/pocketpy/pocketpy_c.h b/include/pocketpy/pocketpy_c.h index d00cdcfd..27730e46 100644 --- a/include/pocketpy/pocketpy_c.h +++ b/include/pocketpy/pocketpy_c.h @@ -2,9 +2,6 @@ #define POCKETPY_C_H #ifdef __cplusplus -#if __EMSCRIPTEN__ -#include -#endif extern "C" { #endif