This is the mail archive of the gcc-bugs@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: glibc 2.1.1pre2 breaks libstdc++-v3 build


On Fri, Jan 12, 2001 at 11:32:14AM -0800, Ulrich Drepper wrote:
> "Zack Weinberg" <zackw@stanford.edu> writes:
> 
> > [Glibc should be doing
> > 
> > #define printf(args...) fprintf(stdout, args...)
> > 
> > which will DTRT with all versions of GCC that support varargs macros
> > at all.]
> 
> Did you even try this (leave alone thinking about it)?  Try
> 
> 
> typedef struct _IO_FILE FILE;
> extern FILE *stdout;
> #define printf(args...) fprintf(stdout, args)
> int
> main()
> {
>   printf ();
>   return 0;
> }

test.c: In function `main':
test.c:7: parse error before `)'

I fail to see the problem.

zw

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