From: Bruno Haible Date: Wed, 14 Sep 2022 10:47:30 +0000 (+0200) Subject: Update after gnulib changed: Fix link errors on MSVC. X-Git-Tag: v0.22~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c411ccb2d030325558fae255a6516c9807ee7bc;p=thirdparty%2Fgettext.git Update after gnulib changed: Fix link errors on MSVC. * gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always. --- 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