This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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