just don't use keep alive at all for static build

This commit is contained in:
pmp-p 2024-01-16 11:35:04 +01:00
parent bb90d76a11
commit 2157523313
2 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,7 @@
#define PK_EXPORT __declspec(dllexport) #define PK_EXPORT __declspec(dllexport)
#define PK_SYS_PLATFORM 0 #define PK_SYS_PLATFORM 0
#elif __EMSCRIPTEN__ #elif __EMSCRIPTEN__
#define PK_EXPORT EMSCRIPTEN_KEEPALIVE #define PK_EXPORT
#define PK_SYS_PLATFORM 1 #define PK_SYS_PLATFORM 1
#elif __APPLE__ #elif __APPLE__
#include <TargetConditionals.h> #include <TargetConditionals.h>

View File

@ -2,9 +2,6 @@
#define POCKETPY_C_H #define POCKETPY_C_H
#ifdef __cplusplus #ifdef __cplusplus
#if __EMSCRIPTEN__
#include <emscripten.h>
#endif
extern "C" { extern "C" {
#endif #endif