entered into RCS
authorRichard Stallman <rms@gnu.org>
Tue, 28 Jul 1992 20:47:17 +0000 (20:47 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 28 Jul 1992 20:47:17 +0000 (20:47 +0000)
From-SVN: r1706

gcc/ginclude/stdarg.h

index 8e061e2..963d05d 100644 (file)
@@ -73,6 +73,11 @@ void va_end (__gnuc_va_list);                /* Defined in libgcc.a */
 
 #ifdef _STDARG_H
 /* Define va_list, if desired, from __gnuc_va_list. */
+/* We deliberately do not define va_list when called from
+   stdio.h, because ANSI C says that stdio.h is not supposed to define
+   va_list.  stdio.h needs to have access to that data type, 
+   but must not use that name.  It should use the name __gnuc_va_list,
+   which is safe because it is reserved for the implementation.  */
 
 #ifdef _HIDDEN_VA_LIST  /* On OSF1, this means varargs.h is "half-loaded".  */
 #undef _VA_LIST