glibc 2.1.1pre2 breaks libstdc++-v3 build
Zack Weinberg
zackw@Stanford.EDU
Fri Jan 12 11:45:00 GMT 2001
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
More information about the Libc-alpha
mailing list