From 7cd0a696643a824ab6f6911278f116f01c5af662 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 14 Jul 2020 20:37:21 +0800 Subject: build: test for __declspec(dllexport) in configure This should work for GCC and Clang when building for Windows targets. --- src/script/bitcoinconsensus.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/script/bitcoinconsensus.h') 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 #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"))) -- cgit v1.2.3