From: Bruno Haible Date: Sun, 26 Dec 2010 02:45:21 +0000 (+0100) Subject: printf-posix: Fix link error when a non-GCC compiler is used. X-Git-Tag: v0.1~3453 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=7cd979fbd80e6c99f8267044903fced42d96adbc;p=gnulib.git 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 index 763cd2e59..26d64d263 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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. * doc/posix-functions/strerror_r.texi: Update doc about the return value. See . diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 2b84cfe96..13479b8ce 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -676,6 +676,9 @@ _GL_FUNCDECL_RPL_1 (__printf__, int, _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)))