MINGW-packages/mingw-w64-gettext/0024-disable-gnu-format.patch
Christoph Reiter 141548534d gettext: revert upstream adding a printf format attribute
It doesn't match what the gettext functions allow, so revert to avoid
build warnings for things like %I64u
2024-02-23 07:25:43 +01:00

17 lines
704 B
Diff

--- gettext-0.22.5/gettext-runtime/intl/libgnuintl.in.h.orig 2024-02-21 17:32:21.000000000 +0100
+++ gettext-0.22.5/gettext-runtime/intl/libgnuintl.in.h 2024-02-23 07:22:27.934079300 +0100
@@ -134,6 +134,13 @@
# define _INTL_ATTRIBUTE_FORMAT(spec)
#endif
+/* gettext printf functions allow ms specific format specifiers like %I64u
+ which error out with __gnu_printf__, so revert this for now on Windows */
+#ifdef __MINGW32__
+#undef _INTL_ATTRIBUTE_FORMAT
+#define _INTL_ATTRIBUTE_FORMAT(spec)
+#endif
+
/* _INTL_ATTRIBUTE_SPEC_PRINTF_STANDARD
An __attribute__ __format__ specifier for a function that takes a format
string and arguments, where the format string directives are the ones