diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bls_c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |