Revert "build: remove check for __declspec(dllexport)"

This reverts commit bbcba09cd5 (#30590)
This commit is contained in:
Luke Dashjr 2025-01-31 04:33:48 +00:00
parent e7e7893e67
commit a0e4d76712
2 changed files with 15 additions and 0 deletions

View File

@ -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"

View File

@ -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([[