diff options
author | Bruno Haible <bruno@clisp.org> | 2006-06-20 11:30:10 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:13:25 +0200 |
commit | 7653715e8bf7daee3bd9e9c11737f30d1e21307b (patch) | |
tree | cfe4f9bf4b7edf55fb1abf731d44025ce285d113 | |
parent | d6702e5f3b19a34876a09f1cfd2c0162c95ee5fb (diff) | |
download | external_gettext-7653715e8bf7daee3bd9e9c11737f30d1e21307b.zip external_gettext-7653715e8bf7daee3bd9e9c11737f30d1e21307b.tar.gz external_gettext-7653715e8bf7daee3bd9e9c11737f30d1e21307b.tar.bz2 |
Avoid gcc warnings when __attribute__((format(printf,M,N))) is used.
-rw-r--r-- | gettext-runtime/intl/ChangeLog | 6 | ||||
-rw-r--r-- | gettext-runtime/intl/libgnuintl.h.in | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index aaa86ad..8911606 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,9 @@ +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) diff --git a/gettext-runtime/intl/libgnuintl.h.in b/gettext-runtime/intl/libgnuintl.h.in index e2dba5b..918e415 100644 --- a/gettext-runtime/intl/libgnuintl.h.in +++ b/gettext-runtime/intl/libgnuintl.h.in @@ -330,6 +330,12 @@ extern int fprintf (FILE *, const char *, ...); 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 |