Don't define _STDARG_H/etc. if not gcc, it may collide with system's header.
authorDoug Evans <dje@gnu.org>
Fri, 11 Feb 1994 21:03:09 +0000 (21:03 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 11 Feb 1994 21:03:09 +0000 (21:03 +0000)
From-SVN: r6527

gcc/ginclude/stdarg.h

index 00ed69665cde5a0e0223ae57cef5e469c85f5956..1dac354ae1f84d4f36b2ceeb68afe605bd3bb02f 100644 (file)
@@ -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 <stdarg.h>
+#else
+
 #ifndef _STDARG_H
 #ifndef _ANSI_STDARG_H_
 #ifndef __need___va_list
 #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 <stdarg.h>
-#else
 #ifdef __clipper__
 #include <va-clipper.h>
 #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__ */