From 63e834b00b06a02cb78cbf859d947dfc35cf9a9d Mon Sep 17 00:00:00 2001 From: dje Date: Fri, 11 Feb 1994 21:03:09 +0000 Subject: Don't define _STDARG_H/etc. if not gcc, it may collide with system's header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6527 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ginclude/stdarg.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gcc/ginclude/stdarg.h') diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 00ed69665cd..1dac354ae1f 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -3,6 +3,12 @@ actual type **after default promotions**. Thus, va_arg (..., short) is not valid. */ +#ifndef __GNUC__ +/* Use the system's macros with the system's compiler. + This is relevant only when building GCC with some other compiler. */ +#include +#else + #ifndef _STDARG_H #ifndef _ANSI_STDARG_H_ #ifndef __need___va_list @@ -11,11 +17,6 @@ #endif /* not __need___va_list */ #undef __need___va_list -#ifndef __GNUC__ -/* Use the system's macros with the system's compiler. - This is relevant only when building GCC with some other compiler. */ -#include -#else #ifdef __clipper__ #include #else @@ -155,6 +156,6 @@ typedef __gnuc_va_list va_list; #endif /* _STDARG_H */ -#endif /* __GNUC__ */ #endif /* not _ANSI_STDARG_H_ */ #endif /* not _STDARG_H */ +#endif /* __GNUC__ */ -- cgit v1.2.1