]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix build failure on Cygwin and mingw without preinstalled libunistring.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Jun 2025 13:34:31 +0000 (15:34 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 6 Jun 2025 13:37:28 +0000 (15:37 +0200)
* gettext-tools/configure.ac: Define DLL_VARIABLE and LIBGETTEXTSRC_DLL_VARIABLE
on Cygwin and mingw like on MSVC.

gettext-tools/configure.ac

index b0983dcdd0f24cef047757835da19b6b82efd7ae..93e848aedb39e1a3c51200317e12d052eb2a2fd2 100644 (file)
@@ -402,7 +402,7 @@ AH_BOTTOM([
 /* DLL_VARIABLE               is used for variables defined in libgettextlib.
    LIBGETTEXTSRC_DLL_VARIABLE is used for variables defined in libgettextsrc.
  */
-#if defined _MSC_VER && WOE32DLL && !defined IN_RELOCWRAPPER
+#if (defined _WIN32 || defined __CYGWIN__) && WOE32DLL && !defined IN_RELOCWRAPPER
 # if IN_LIBGETTEXTLIB
 #  if defined DLL_EXPORT
 #   define DLL_VARIABLE __declspec (dllexport)
@@ -412,12 +412,10 @@ AH_BOTTOM([
 # else
 #  define DLL_VARIABLE __declspec (dllimport)
 # endif
-#elif (defined _WIN32 || defined __CYGWIN__) && defined DLL_EXPORT && !defined IN_RELOCWRAPPER
-# define DLL_VARIABLE __declspec (dllimport)
 #else
 # define DLL_VARIABLE
 #endif
-#if defined _MSC_VER && WOE32DLL && !defined IN_RELOCWRAPPER
+#if (defined _WIN32 || defined __CYGWIN__) && WOE32DLL && !defined IN_RELOCWRAPPER
 # if IN_LIBGETTEXTSRC
 #  if defined DLL_EXPORT
 #   define LIBGETTEXTSRC_DLL_VARIABLE __declspec (dllexport)
@@ -427,8 +425,6 @@ AH_BOTTOM([
 # else
 #  define LIBGETTEXTSRC_DLL_VARIABLE __declspec (dllimport)
 # endif
-#elif (defined _WIN32 || defined __CYGWIN__) && defined DLL_EXPORT && !defined IN_RELOCWRAPPER
-# define LIBGETTEXTSRC_DLL_VARIABLE __declspec (dllimport)
 #else
 # define LIBGETTEXTSRC_DLL_VARIABLE
 #endif