diff options
-rw-r--r-- | include/bls/bls.h | 2 | ||||
-rw-r--r-- | src/bls_c.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h index 42e7109..820fc59 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -22,6 +22,8 @@ #else #ifdef __EMSCRIPTEN__ #define BLS_DLL_API __attribute__((used)) +#elif defined(__wasm__) + #define BLS_DLL_API __attribute__((visibility("default"))) #else #define BLS_DLL_API #endif diff --git a/src/bls_c.cpp b/src/bls_c.cpp index 274babb..5f55785 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -43,7 +43,7 @@ extern "C" BLS_DLL_API void blsFree(void *p) } #endif -#ifndef __EMSCRIPTEN__ +#if !defined(__EMSCRIPTEN__) && !defined(__wasm__) #if defined(CYBOZU_CPP_VERSION) && CYBOZU_CPP_VERSION >= CYBOZU_CPP_VERSION_CPP11 #include <mutex> #define USE_STD_MUTEX |