diff options
-rw-r--r-- | system/include/emscripten/emscripten.h | 2 | ||||
-rwxr-xr-x | system/lib/embind/bind.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index a4474670..61634b0e 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -24,7 +24,7 @@ extern "C" { * with closure, asm.js, etc. For example * -s EXPORTED_FUNCTIONS=["_main", "myfunc"] */ -#define EMSCRIPTEN_KEEPALIVE __attribute__((used)) +/* #define EMSCRIPTEN_KEEPALIVE __attribute__((used)) */ /* * Interface to the underlying JS engine. This function will diff --git a/system/lib/embind/bind.cpp b/system/lib/embind/bind.cpp index 1619eddc..deb55138 100755 --- a/system/lib/embind/bind.cpp +++ b/system/lib/embind/bind.cpp @@ -12,7 +12,7 @@ using namespace emscripten;
extern "C" {
- const char* EMSCRIPTEN_KEEPALIVE __getTypeName(const std::type_info* ti) {
+ const char* __attribute__((used)) __getTypeName(const std::type_info* ti) {
#ifdef USE_CXA_DEMANGLE
int stat;
char* demangled = abi::__cxa_demangle(ti->name(), NULL, NULL, &stat);
|