Merge pull request #318 from elichai/secp_build_warn

Fix a C compiler warning because of redefinition of SECP256K1_BUILD
This commit is contained in:
Andrew Poelstra 2021-07-01 22:02:47 +00:00 committed by GitHub
commit 12e3c66bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ fn main() {
.include("depend/secp256k1/include") .include("depend/secp256k1/include")
.include("depend/secp256k1/src") .include("depend/secp256k1/src")
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream .flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
.define("SECP256K1_BUILD", Some("1"))
.define("SECP256K1_API", Some("")) .define("SECP256K1_API", Some(""))
.define("ENABLE_MODULE_ECDH", Some("1")) .define("ENABLE_MODULE_ECDH", Some("1"))
.define("ENABLE_MODULE_SCHNORRSIG", Some("1")) .define("ENABLE_MODULE_SCHNORRSIG", Some("1"))