]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed: Fix link errors on MSVC.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2022 10:47:30 +0000 (12:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Sep 2022 15:35:15 +0000 (17:35 +0200)
* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.

gettext-runtime/configure.ac

index 090b9ff8773a9f1dc0e4c8a04d5a80bf3c69cbf7..2006d47156680973d67d5a27b28ab06c733090c0 100644 (file)
@@ -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