summarylogtreecommitdiffstats
path: root/0024-disable-gnu-format.patch
blob: a368819bf3a0a687308adb4583f853deb003a2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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