From 4a397e4e8e38ea1e6fb50848f43dede0287df56b Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 27 May 2018 23:56:06 +0900 Subject: noexception build --- src/bls_c.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/bls_c.cpp b/src/bls_c.cpp index c7541a6..27de518 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -33,6 +33,10 @@ int blsInitNotThreadSafe(int curve, int maxUnitSize) } #ifdef __EMSCRIPTEN__ +extern "C" BLS_DLL_API void *blsMalloc(size_t n) +{ + return malloc(n); +} extern "C" BLS_DLL_API void blsFree(void *p) { free(p); -- cgit v1.2.3