From 974b324a5fd1ca9db378c8159ea02c002ea28883 Mon Sep 17 00:00:00 2001 From: rms Date: Tue, 28 Jul 1992 20:47:17 +0000 Subject: [PATCH] entered into RCS git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1706 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ginclude/stdarg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 8e061e22778..963d05da305 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 -- 2.11.0