From: Bruno Haible Date: Tue, 13 Sep 2022 12:26:20 +0000 (+0200) Subject: Update after gnulib changed: Fix link errors on MSVC. X-Git-Tag: v0.21.1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e589e240a17a42b857d98a4a2f2ccdc8c25f89;p=thirdparty%2Fgettext.git Update after gnulib changed: Fix link errors on MSVC. This fixes a link error on MSVC with --enable-shared. * gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always. --- diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index e7eae13bb..d524fc9c9 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -140,8 +140,10 @@ AC_SUBST([INTL_EXPORTS_FLAGS]) 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 WOE32DLL) && !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