This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Gcc 3.0, printf() and exim-3.30


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]