diff --git a/secp256k1.nim b/secp256k1.nim index 61716f2..9dd6f53 100644 --- a/secp256k1.nim +++ b/secp256k1.nim @@ -13,6 +13,9 @@ const {.passC: "-I" & quoteShell(srcPath).} {.passC: "-DHAVE_CONFIG_H".} +when defined(gcc) or defined(clang): + {.passC: "-DHAVE_BUILTIN_EXPECT"} + {.compile: secpSrc.} {.deadCodeElim: on.} diff --git a/secp256k1.nimble b/secp256k1.nimble index 8261381..cd19084 100644 --- a/secp256k1.nimble +++ b/secp256k1.nimble @@ -1,7 +1,7 @@ mode = ScriptMode.Verbose packageName = "secp256k1" -version = "0.1.1" +version = "0.1.2" author = "Status Research & Development GmbH" description = "A wrapper for the libsecp256k1 C library" license = "Apache License 2.0" diff --git a/secp256k1_wrapper/libsecp256k1-config.h b/secp256k1_wrapper/libsecp256k1-config.h index d80d017..9d58ebd 100644 --- a/secp256k1_wrapper/libsecp256k1-config.h +++ b/secp256k1_wrapper/libsecp256k1-config.h @@ -21,7 +21,7 @@ /* #undef ENABLE_OPENSSL_TESTS */ /* Define this symbol if __builtin_expect is available */ -#define HAVE_BUILTIN_EXPECT 1 +/* #define HAVE_BUILTIN_EXPECT 1 */ /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1