aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-02-11 21:03:09 +0000
committerDoug Evans <dje@gnu.org>1994-02-11 21:03:09 +0000
commit9d891e9a7e8ab20530e4cf9eb412c2a21a7a4295 (patch)
treea76f97ebf3e8a61cb14504622cc2244968683c0d /gcc/ginclude/stdarg.h
parente7c692b2cc5892b87bc7fbe71475340c4f32a7b2 (diff)
downloadgcc-9d891e9a7e8ab20530e4cf9eb412c2a21a7a4295.zip
gcc-9d891e9a7e8ab20530e4cf9eb412c2a21a7a4295.tar.gz
gcc-9d891e9a7e8ab20530e4cf9eb412c2a21a7a4295.tar.bz2
Don't define _STDARG_H/etc. if not gcc, it may collide with system's header.
From-SVN: r6527
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rw-r--r--gcc/ginclude/stdarg.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index 00ed696..1dac354 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 <stdarg.h>
+#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 <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__ */