From: Bruno Haible Date: Sun, 3 Jul 2022 14:21:52 +0000 (+0200) Subject: build: Fix link error for tstgettext.exe on mingw. X-Git-Tag: v0.22~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2902712579032c0010dfc7bc0227877525754254;p=thirdparty%2Fgettext.git build: Fix link error for tstgettext.exe on mingw. * gettext-runtime/intl/export.h: Treat mingw like MSVC. In static builds. don't use __declspec(dllexport). In shared builds, use also __declspec(dllimport). --- diff --git a/gettext-runtime/intl/export.h b/gettext-runtime/intl/export.h index 10253e338..915256df2 100644 --- a/gettext-runtime/intl/export.h +++ b/gettext-runtime/intl/export.h @@ -1,8 +1,10 @@ #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default"))) -#elif defined _MSC_VER && BUILDING_LIBINTL +#elif (defined _WIN32 && !defined __CYGWIN__) && defined WOE32DLL && BUILDING_LIBINTL #define LIBINTL_DLL_EXPORTED __declspec(dllexport) +#elif (defined _WIN32 && !defined __CYGWIN__) && defined WOE32DLL +#define LIBINTL_DLL_EXPORTED __declspec(dllimport) #else #define LIBINTL_DLL_EXPORTED #endif