diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-02 21:12:13 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-02 21:12:13 +0800 |
commit | 25467fdfd9950a6a239e7893f262e75ed7584e0f (patch) | |
tree | f64505bfb7c56e9383e4b0785af48b97785de071 /include/bls | |
parent | 615453117dd8a77d35ea1afea5ffdabdd41c93b2 (diff) | |
download | dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar.gz dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar.bz2 dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar.lz dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar.xz dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.tar.zst dexon-bls-25467fdfd9950a6a239e7893f262e75ed7584e0f.zip |
add check for BLS_SWAP_G
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <mcl/bn.h> +#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 |