aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-11-05 18:06:42 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-11-05 18:06:42 +0800
commitd12b2a21a2f6654c6bdc87e62012483fb3aca493 (patch)
tree32f15667f5efa3e14eb8a29a46abc6c11eb3a7ba /include/bls/bls.h
parente11812a1072b5d56c9c8a86b77a9f6cbef2bf7de (diff)
downloaddexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar.gz
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar.bz2
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar.lz
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar.xz
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.tar.zst
dexon-bls-d12b2a21a2f6654c6bdc87e62012483fb3aca493.zip
[js] support Node.js
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index 5fe2d81..2b87e1e 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -20,7 +20,11 @@
#endif
#endif
#else
-#define BLS_DLL_API
+#ifdef __EMSCRIPTEN__
+ #define BLS_DLL_API __attribute__((used))
+#else
+ #define BLS_DLL_API
+#endif
#endif
#ifdef __cplusplus