File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,6 @@ if test x$ac_cv_sys_large_files != x &&
813
813
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
814
814
fi
815
815
816
- AX_GCC_FUNC_ATTRIBUTE ( [ dllexport] )
817
816
AX_GCC_FUNC_ATTRIBUTE ( [ dllimport] )
818
817
819
818
if test x$use_glibc_compat != xno; then
@@ -1000,6 +999,18 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
1000
999
]
1001
1000
)
1002
1001
1002
+ AC_MSG_CHECKING ( [ for dllexport attribute] )
1003
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [
1004
+ __declspec(dllexport) int foo(void);
1005
+ int main(){}
1006
+ ] ) ] ,
1007
+ [
1008
+ AC_DEFINE ( HAVE_DLLEXPORT_ATTRIBUTE ,1 ,[ Define if the dllexport attribute is supported.] )
1009
+ AC_MSG_RESULT ( yes )
1010
+ ] ,
1011
+ [ AC_MSG_RESULT ( no ) ]
1012
+ )
1013
+
1003
1014
dnl thread_local is currently disabled when building with glibc back compat.
1004
1015
dnl Our minimum supported glibc is 2.17, however support for thread_local
1005
1016
dnl did not arrive in glibc until 2.18.
Original file line number Diff line number Diff line change 11
11
#if defined(BUILD_BITCOIN_INTERNAL ) && defined(HAVE_CONFIG_H )
12
12
#include <config/bitcoin-config.h>
13
13
#if defined(_WIN32 )
14
- #if defined(DLL_EXPORT )
15
- #if defined(HAVE_FUNC_ATTRIBUTE_DLLEXPORT )
16
- #define EXPORT_SYMBOL __declspec(dllexport)
17
- #else
18
- #define EXPORT_SYMBOL
19
- #endif
14
+ #if defined(HAVE_DLLEXPORT_ATTRIBUTE )
15
+ #define EXPORT_SYMBOL __declspec(dllexport)
16
+ #else
17
+ #define EXPORT_SYMBOL
20
18
#endif
21
19
#elif defined(HAVE_DEFAULT_VISIBILITY_ATTRIBUTE )
22
20
#define EXPORT_SYMBOL __attribute__ ((visibility ("default")))
You can’t perform that action at this time.
0 commit comments