Skip to content

Commit

Permalink
add check for BLS_SWAP_G
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Dec 2, 2018
1 parent 6154531 commit 25467fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/bls/bls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25467fd

Please sign in to comment.