Skip to content

Commit

Permalink
build: Accept SECP256K1_DLL in addition to DLL_EXPORT in lib builds
Browse files Browse the repository at this point in the history
Addresses one item in bitcoin-core#1235.
  • Loading branch information
real-or-random committed Jun 28, 2023
1 parent ac5bbc8 commit e4ab120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/secp256k1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4ab120

Please sign in to comment.