diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-27 22:56:06 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-27 22:56:06 +0800 |
commit | 4a397e4e8e38ea1e6fb50848f43dede0287df56b (patch) | |
tree | 57fabffa0c7d61f5ff78dc93c945ebb9a3980175 /src | |
parent | 600cc468d8884edbd8945dbe55cf2e86e5b48ed7 (diff) | |
download | dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar.gz dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar.bz2 dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar.lz dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar.xz dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.tar.zst dexon-bls-4a397e4e8e38ea1e6fb50848f43dede0287df56b.zip |
noexception build
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); |