diff --git a/build_msvc/bitcoin_config.h.in b/build_msvc/bitcoin_config.h.in index b0238c9112..33632ad17c 100644 --- a/build_msvc/bitcoin_config.h.in +++ b/build_msvc/bitcoin_config.h.in @@ -49,6 +49,9 @@ */ #define HAVE_DECL_SETSID 0 +/* Define if the dllexport attribute is supported. */ +#define HAVE_DLLEXPORT_ATTRIBUTE 1 + /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "https://github.com/bitcoin/bitcoin/issues" diff --git a/configure.ac b/configure.ac index 30d56f6170..513e0522d4 100644 --- a/configure.ac +++ b/configure.ac @@ -934,6 +934,18 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ [ AC_MSG_RESULT([no])] ) +AC_MSG_CHECKING([for dllexport attribute]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ + __declspec(dllexport) int foo(void); + int main(){} + ])], + [ + AC_DEFINE([HAVE_DLLEXPORT_ATTRIBUTE], [1], [Define if the dllexport attribute is supported.]) + AC_MSG_RESULT([yes]) + ], + [AC_MSG_RESULT([no])] +) + AC_MSG_CHECKING(for macOS iopolicy functions) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[