# HG changeset patch # User Bruno Haible # Date 1293331521 -3600 # Node ID 0082f00778bc5249551a32ba3ae96c676f5862ee # Parent 11d2924ba0101c80ad8194a16659e50ba6252728 printf-posix: Fix link error when a non-GCC compiler is used. * lib/stdio.in.h (printf): When not using GCC, override printf correctly. Reported by Joachim Schmitz . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-25 Bruno Haible + + printf-posix: Fix link error when a non-GCC compiler is used. + * lib/stdio.in.h (printf): When not using GCC, override printf + correctly. + Reported by Joachim Schmitz . + 2010-12-25 Bruno Haible strerror_r-posix: Update doc. diff --git a/lib/stdio.in.h b/lib/stdio.in.h --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -676,6 +676,9 @@ _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); # else +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define printf rpl_printf +# endif _GL_FUNCDECL_RPL (printf, int, (const char *format, ...) __attribute__ ((__format__ (__printf__, 1, 2)))