aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
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