+2006-06-19 Bruno Haible <bruno@clisp.org>
+
+ * libgnuintl.h.in (libintl_printf): Define to __printf__ on NetBSD,
+ Cygwin, mingw.
+ Reported by Henry Nelson <netb@yuba.ne.jp>.
+
2006-06-17 Bruno Haible <bruno@clisp.org>
* bindtextdom.c (gl_rwlock_define, gl_rwlock_wrlock, gl_rwlock_unlock)
extern int vfprintf (FILE *, const char *, va_list);
#undef printf
+#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__
+/* Don't break __attribute__((format(printf,M,N))).
+ This redefinition is only possible because the libc in NetBSD, Cygwin,
+ mingw does not have a function __printf__. */
+# define libintl_printf __printf__
+#endif
#define printf libintl_printf
extern int printf (const char *, ...);
#undef vprintf