glibc 2.1.1pre2 breaks libstdc++-v3 build
Ulrich Drepper
drepper@redhat.com
Fri Jan 12 11:33:00 GMT 2001
"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;
}
(Note the ... I left out to make it compile).
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list