--- 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
