diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-05-01 13:16:50 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-05-01 13:16:50 +0800 |
commit | 02617cf8c7c12442ad5514c8d8240cdd6039c3ca (patch) | |
tree | 9b143ecaada6d91ff7c165eb605fc403d5e2a3a1 | |
parent | 32fbeb0d02e2e7100d3ded989b19a60862576f7a (diff) | |
download | tangerine-mcl-02617cf8c7c12442ad5514c8d8240cdd6039c3ca.tar.gz tangerine-mcl-02617cf8c7c12442ad5514c8d8240cdd6039c3ca.tar.zst tangerine-mcl-02617cf8c7c12442ad5514c8d8240cdd6039c3ca.zip |
don't include exception.hpp if CYBOZU_DONT_USE_EXCEPTION is defined
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | include/mcl/vint.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -335,7 +335,7 @@ ecdsa-wasm: bin/emu: $(CXX) -g -o $@ src/fp.cpp src/bn_c256.cpp test/bn_c256_test.cpp -DMCL_DONT_USE_XBYAK -DMCL_DONT_USE_OPENSSL -DMCL_USE_VINT -DMCL_SIZEOF_UNIT=8 -DMCL_VINT_64BIT_PORTABLE -DMCL_VINT_FIXED_BUFFER -DMCL_MAX_BIT_SIZE=256 -I./include bin/pairing_c_min.exe: sample/pairing_c.c include/mcl/vint.hpp src/fp.cpp include/mcl/bn.hpp - $(CXX) -o $@ sample/pairing_c.c src/fp.cpp src/bn_c256.cpp -Og -g -I./include -fno-threadsafe-statics -DMCL_DONT_USE_XBYAK -DMCL_DONT_USE_OPENSSL -DMCL_USE_VINT -DMCL_SIZEOF_UNIT=8 -DMCL_VINT_FIXED_BUFFER -DMCL_MAX_BIT_SIZE=256 -DMCL_VINT_64BIT_PORTABLE #-DNDEBUG -DMCL_DONT_USE_CSPRNG + $(CXX) -o $@ sample/pairing_c.c src/fp.cpp src/bn_c256.cpp -O3 -g -I./include -fno-threadsafe-statics -DMCL_DONT_USE_XBYAK -DMCL_DONT_USE_OPENSSL -DMCL_USE_VINT -DMCL_SIZEOF_UNIT=8 -DMCL_VINT_FIXED_BUFFER -DMCL_MAX_BIT_SIZE=256 -DMCL_VINT_64BIT_PORTABLE -DCYBOZU_DONT_USE_STRING -DCYBOZU_DONT_USE_EXCEPTION -DNDEBUG # -DMCL_DONT_USE_CSPRNG make_tbl: $(MAKE) ../bls/src/qcoeff-bn254.hpp diff --git a/include/mcl/vint.hpp b/include/mcl/vint.hpp index d9641e7..bf324f4 100644 --- a/include/mcl/vint.hpp +++ b/include/mcl/vint.hpp @@ -2,7 +2,9 @@ /** emulate mpz_class */ +#ifndef CYBOZU_DONT_USE_EXCEPTION #include <cybozu/exception.hpp> +#endif #include <cybozu/bit_operation.hpp> #include <cybozu/xorshift.hpp> #include <assert.h> |