From e4ab12025e6562acb8206b0c0589e9d4bc9e7bdd Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Wed, 28 Jun 2023 11:29:30 +0200 Subject: [PATCH] build: Accept SECP256K1_DLL in addition to DLL_EXPORT in lib builds Addresses one item in #1235. --- include/secp256k1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/secp256k1.h b/include/secp256k1.h index f10a30a902..afd39061d2 100644 --- a/include/secp256k1.h +++ b/include/secp256k1.h @@ -145,7 +145,7 @@ typedef int (*secp256k1_nonce_function)( * Attributes" in the GCC manual and the recommendations in * https://gcc.gnu.org/wiki/Visibility. */ # if defined(SECP256K1_BUILD) -# if defined(DLL_EXPORT) +# if defined(SECP256K1_DLL) || defined(DLL_EXPORT) /* Building libsecp256k1 as a DLL. (DLL_EXPORT is a libtool convention.) */ # define SECP256K1_API __declspec (dllexport) # define SECP256K1_API_VAR extern __declspec (dllexport)