From 25467fdfd9950a6a239e7893f262e75ed7584e0f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 2 Dec 2018 22:12:13 +0900 Subject: add check for BLS_SWAP_G --- include/bls/bls.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bls/bls.h b/include/bls/bls.h index 33d054f..b2c06f2 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -8,6 +8,14 @@ */ #include +#ifdef BLS_SWAP_G + /* + error if BLS_SWAP_G is inconsistently used between library and exe + */ + #undef MCLBN_COMPILED_TIME_VAR + #define MCLBN_COMPILED_TIME_VAR ((MCLBN_FR_UNIT_SIZE) * 10 + (MCLBN_FP_UNIT_SIZE) + 100) +#endif + #ifdef _MSC_VER #ifdef BLS_DONT_EXPORT #define BLS_DLL_API -- cgit v1.2.3