summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-14 12:47:30 +0200
committerBruno Haible <bruno@clisp.org>2022-09-25 17:35:15 +0200
commit1c411ccb2d030325558fae255a6516c9807ee7bc (patch)
tree032f61205f1bdf956e74a2feba227d823cb73aa6
parent6e0ab541e599f3df6336c2832edbb27e635d54a5 (diff)
downloadgettext-1c411ccb2d030325558fae255a6516c9807ee7bc.tar.gz
Update after gnulib changed: Fix link errors on MSVC.
* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.
-rw-r--r--gettext-runtime/configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
index 090b9ff87..2006d4715 100644
--- a/gettext-runtime/configure.ac
+++ b/gettext-runtime/configure.ac
@@ -136,8 +136,10 @@ fi
dnl Put some default definitions into config.h.
AH_BOTTOM([
-/* On Windows, variables that may be in a DLL must be marked specially. */
-#if (defined _MSC_VER && defined _DLL) && !defined IN_RELOCWRAPPER
+/* On Windows, variables that may be in a DLL must be marked specially.
+ But here, the only such variable is 'exit_failure', and it is always
+ built into a static library, never into a shared library. */
+#if defined WOE32DLL && !defined IN_RELOCWRAPPER && 0
# define DLL_VARIABLE __declspec (dllimport)
#else
# define DLL_VARIABLE