From: Bruno Haible Date: Sun, 16 May 2010 10:07:07 +0000 (+0200) Subject: Add comment. X-Git-Tag: v0.18.1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad33e03a9c08e7fe816b0ae4419e9b1d9a9fb2b;p=thirdparty%2Fgettext.git Add comment. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index 6e6e5dfce..a8867314e 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,7 @@ +2010-05-16 Bruno Haible + + * libgnuintl.h.in (printf): Add comment. + 2010-05-09 Bruno Haible * gettext-0.18 released. diff --git a/gettext-runtime/intl/libgnuintl.h.in b/gettext-runtime/intl/libgnuintl.h.in index c991bf051..15ce50e65 100644 --- a/gettext-runtime/intl/libgnuintl.h.in +++ b/gettext-runtime/intl/libgnuintl.h.in @@ -341,7 +341,13 @@ extern int vfprintf (FILE *, const char *, va_list); #if defined __NetBSD__ || defined __BEOS__ || 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__. */ + mingw does not have a function __printf__. + Alternatively, we could have done this redirection only when compiling with + __GNUC__, together with a symbol redirection: + extern int printf (const char *, ...) + __asm__ (#__USER_LABEL_PREFIX__ "libintl_printf"); + But doing it now would introduce a binary incompatibility with already + distributed versions of libintl on these systems. */ # define libintl_printf __printf__ #endif #define printf libintl_printf