diff options
author | fanquake <fanquake@gmail.com> | 2020-07-14 20:37:21 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-02-12 09:04:16 +0800 |
commit | 7cd0a696643a824ab6f6911278f116f01c5af662 (patch) | |
tree | 9a2087515fbfaad171adc0c8187db35e69c26d41 /src/script/bitcoinconsensus.h | |
parent | 1624e17b5430dfe808bb3b1b79dfa53bf45aa053 (diff) | |
download | bitcoin-7cd0a696643a824ab6f6911278f116f01c5af662.tar.xz |
build: test for __declspec(dllexport) in configure
This should work for GCC and Clang when building for Windows targets.
Diffstat (limited to 'src/script/bitcoinconsensus.h')
-rw-r--r-- | src/script/bitcoinconsensus.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/script/bitcoinconsensus.h b/src/script/bitcoinconsensus.h index 9c966e7c1d..b6939127e1 100644 --- a/src/script/bitcoinconsensus.h +++ b/src/script/bitcoinconsensus.h @@ -11,12 +11,10 @@ #if defined(BUILD_BITCOIN_INTERNAL) && defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #if defined(_WIN32) - #if defined(DLL_EXPORT) - #if defined(HAVE_FUNC_ATTRIBUTE_DLLEXPORT) - #define EXPORT_SYMBOL __declspec(dllexport) - #else - #define EXPORT_SYMBOL - #endif + #if defined(HAVE_DLLEXPORT_ATTRIBUTE) + #define EXPORT_SYMBOL __declspec(dllexport) + #else + #define EXPORT_SYMBOL #endif #elif defined(HAVE_DEFAULT_VISIBILITY_ATTRIBUTE) #define EXPORT_SYMBOL __attribute__ ((visibility ("default"))) |