From af3ea07591034175604ce4931ca548fd65c56a5a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 5 Jun 2018 18:05:04 +0900 Subject: consiger clang for wasm --- include/bls/bls.h | 2 ++ src/bls_c.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 #define USE_STD_MUTEX -- cgit v1.2.3