This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc 3.0, printf() and exim-3.30
- To: Nix <nix at esperi dot demon dot co dot uk>
- Subject: Re: Gcc 3.0, printf() and exim-3.30
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Fri, 22 Jun 2001 11:33:29 -0700
- Cc: Vadim Vygonets <vadik at vygo dot net>, gcc at gcc dot gnu dot org
On Thu, Jun 21, 2001 at 10:43:26PM +0100, Nix wrote:
> On Wed, 20 Jun 2001, Zack Weinberg spake:
>
> > You can #undef printf immediately after #include <stdio.h>, or write
> >
> > (printf)(" -d ..."
> > ...
> > );
> >
> > which will suppress macro expansion for that use only.
>
> (Random aside: This is less portable than #undef, of course, but since
> the macro is only defined if __GNUC__, this is not a problem.)
Why do you say this? C89 requires it to work. Unless you care
about K+R compilation, you're safe.
--
zw > Having been converted to bagels in the US, ...
Good Lord! You must have -really- offended a Jewish wizard.
-- Niall McAuley and Kip Williams in rec.arts.sf.fandom