This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
gcc's fixincludes and stdio.h
- From: Greg Schafer <gschafer at zip dot com dot au>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 27 Jan 2003 12:18:59 +1100
- Subject: gcc's fixincludes and stdio.h
Hi
fixincludes insists on doing:-
@@ -73,9 +82,9 @@
#ifdef __USE_XOPEN
# ifdef __GNUC__
-# ifndef _VA_LIST_DEFINED
-typedef _G_va_list va_list;
-# define _VA_LIST_DEFINED
+# ifndef _DUMMY_VA_LIST_DEFINED
+typedef _G_va_list __not_va_list__;
+# define _DUMMY_VA_LIST_DEFINED
# endif
# else
# include <stdarg.h>
The fixincludes source says:-
"Don't use or define the name va_list in stdio.h.
This is for ANSI and also to interoperate properly with gcc's varargs.h."
I cannot figure out whether the change is good, bad, bogus or irrelevant.
Could somebody please clue me in?
Thanks
Greg