diff options
Diffstat (limited to 'test/bls_c384_test.cpp')
-rw-r--r-- | test/bls_c384_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/bls_c384_test.cpp b/test/bls_c384_test.cpp index 2e61e2c..21612da 100644 --- a/test/bls_c384_test.cpp +++ b/test/bls_c384_test.cpp @@ -1,4 +1,5 @@ #include <cybozu/test.hpp> +#include <cybozu/inttype.hpp> #include <bls/bls.h> #include <string.h> @@ -62,7 +63,7 @@ void blsOrderTest(const char *curveOrder, const char *fieldOrder) CYBOZU_TEST_EQUAL(buf, fieldOrder); } -#if CYBOZU_CPP_VERSION >= CYBOZU_CPP_VERSION_CPP11 +#if defined(CYBOZU_CPP_VERSION) && CYBOZU_CPP_VERSION >= CYBOZU_CPP_VERSION_CPP11 #include <thread> #include <vector> struct Thread { @@ -86,7 +87,7 @@ CYBOZU_TEST_AUTO(multipleInit) { std::vector<Thread> vt(n); for (size_t i = 0; i < n; i++) { - vt[i].run(blsInitThreadSafe, mclBn_CurveFp254BNb, MCLBN_FP_UNIT_SIZE); + vt[i].run(blsInit, mclBn_CurveFp254BNb, MCLBN_FP_UNIT_SIZE); } } CYBOZU_TEST_EQUAL(blsGetOpUnitSize(), 4u); @@ -94,7 +95,7 @@ CYBOZU_TEST_AUTO(multipleInit) { std::vector<Thread> vt(n); for (size_t i = 0; i < n; i++) { - vt[i].run(blsInitThreadSafe, mclBn_CurveFp382_1, MCLBN_FP_UNIT_SIZE); + vt[i].run(blsInit, mclBn_CurveFp382_1, MCLBN_FP_UNIT_SIZE); } } CYBOZU_TEST_EQUAL(blsGetOpUnitSize(), 6u); |