]> 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:36:48 +0000 (15:36 +0200)
* gettext-tools/configure.ac: Define DLL_VARIABLE and LIBGETTEXTSRC_DLL_VARIABLE
on Cygwin and mingw like on MSVC.

gettext-tools/configure.ac

index b7b490823c3960af6198aee662ae288660a9792f..69068e53c96bbde64b33c86acd6c40e87948770c 100644 (file)
@@ -415,7 +415,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)
@@ -425,12 +425,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)
@@ -440,8 +438,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