gcc's fixincludes and stdio.h

Greg Schafer gschafer@zip.com.au
Mon Jan 27 01:55:00 GMT 2003


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



More information about the Libc-alpha mailing list