mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
ensure em_asm template get C++ linkage
This commit is contained in:
parent
e7f947c987
commit
bb90d76a11
@ -5,7 +5,6 @@
|
||||
#define PK_EXPORT __declspec(dllexport)
|
||||
#define PK_SYS_PLATFORM 0
|
||||
#elif __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#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
|
||||
#endif
|
||||
|
@ -2,6 +2,9 @@
|
||||
#define POCKETPY_C_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#endif
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user