Mercurial > hg > octave-kai > gnulib-hg
changeset 14034:0082f00778bc
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 <jojo@schmitz-digital.de>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 26 Dec 2010 03:45:21 +0100 |
parents | 11d2924ba010 |
children | 1cdd9ed93c4e |
files | ChangeLog lib/stdio.in.h |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-25 Bruno Haible <bruno@clisp.org> + + 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 <jojo@schmitz-digital.de>. + 2010-12-25 Bruno Haible <bruno@clisp.org> strerror_r-posix: Update doc.
--- 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)))