aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-28 20:47:17 +0000
committerRichard Stallman <rms@gnu.org>1992-07-28 20:47:17 +0000
commitda86800a12af7c0ba809f4596198df87612c74a1 (patch)
tree44713b24671e44ad77d2a228e80adaa3ef191495
parent252e25c638f9c0268cca0ab7e8b13e2620620b1e (diff)
downloadgcc-da86800a12af7c0ba809f4596198df87612c74a1.zip
gcc-da86800a12af7c0ba809f4596198df87612c74a1.tar.gz
gcc-da86800a12af7c0ba809f4596198df87612c74a1.tar.bz2
entered into RCS
From-SVN: r1706
-rw-r--r--gcc/ginclude/stdarg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index 8e061e2..963d05d 100644
--- a/gcc/ginclude/stdarg.h
+++ b/gcc/ginclude/stdarg.h
@@ -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