]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a link error on MSVC/clang in --enable-shared mode.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Sep 2022 15:32:07 +0000 (17:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Sep 2022 15:35:15 +0000 (17:35 +0200)
* gettext-runtime/intl/printf.c: Include libgnuintl.h. This ensures that the
LIBINTL_DLL_EXPORTED marker from the libintl_*printf function declarations is
seen when the functions get defined.
* gettext-runtime/intl/Makefile.am: Update comment.

gettext-runtime/intl/Makefile.am
gettext-runtime/intl/printf.c

index af428646591fbd664333f3023203b5048a76ca11..aef03446d1985746f42a324e44d00780dd118c37 100644 (file)
@@ -89,6 +89,7 @@ EXTRA_DIST += \
 #   dcngettext.c:       libintl_dcngettext
 #   textdomain.c:       libintl_textdomain
 #   bindtextdom.c:      libintl_bindtextdomain
+#                       libintl_wbindtextdomain
 #                       libintl_bind_textdomain_codeset
 #   printf.c:           libintl_fprintf
 #                       libintl_vfprintf
index 8ff75e5125dc9bfc41494441755be03c90f8a60b..92b39f76ff6a4951de5ea631df9860ced9e20467 100644 (file)
@@ -50,6 +50,9 @@ char *alloca ();
 #include <stdlib.h>
 #include <string.h>
 
+/* Specifications of the libintl_*printf functions.  */
+#include "libgnuintl.h"
+
 /* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
 #ifndef EOVERFLOW
 # define EOVERFLOW E2BIG