Skip to content

Commit e4ab120

Browse files
build: Accept SECP256K1_DLL in addition to DLL_EXPORT in lib builds
Addresses one item in bitcoin-core#1235.
1 parent ac5bbc8 commit e4ab120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/secp256k1.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ typedef int (*secp256k1_nonce_function)(
145145
* Attributes" in the GCC manual and the recommendations in
146146
* https://gcc.gnu.org/wiki/Visibility. */
147147
# if defined(SECP256K1_BUILD)
148-
# if defined(DLL_EXPORT)
148+
# if defined(SECP256K1_DLL) || defined(DLL_EXPORT)
149149
/* Building libsecp256k1 as a DLL. (DLL_EXPORT is a libtool convention.) */
150150
# define SECP256K1_API __declspec (dllexport)
151151
# define SECP256K1_API_VAR extern __declspec (dllexport)

0 commit comments

Comments
 (0)