summaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-17 07:39:31 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-17 07:39:31 +0000
commit9a23b8dcae72788130b75a5d0bcf94d23ff6e62c (patch)
tree98a8392ef904dfddf105c565d2da150802625673 /gcc/ginclude/stdarg.h
parentdf4a0bd22fbcd2a4844b27891b0069adfd1ca262 (diff)
downloadgcc-9a23b8dcae72788130b75a5d0bcf94d23ff6e62c.tar.gz
(va_list) [__SVR4_2__]: Don't set or test _VA_LIST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2500 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rw-r--r--gcc/ginclude/stdarg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index 85cb3a90460..c93240ef99b 100644
--- a/gcc/ginclude/stdarg.h
+++ b/gcc/ginclude/stdarg.h
@@ -94,6 +94,15 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#undef _BSD_VA_LIST
#endif
+#ifdef __SVR4_2__
+/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
+ so we must avoid testing it and setting it here. */
+#ifndef _VA_LIST_
+#define _VA_LIST_
+typedef __gnuc_va_list va_list;
+#endif /* _VA_LIST_ */
+#else /* not __SVR4_2__ */
+
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix. */
#ifndef _VA_LIST_
/* The macro _VA_LIST is used in SCO Unix 3.2. */
@@ -103,6 +112,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
typedef __gnuc_va_list va_list;
#endif /* _VA_LIST */
#endif /* _VA_LIST_ */
+
+#endif /* not __SVR4_2__ */
+
#endif /* _STDARG_H */
#endif /* __GNUC__ */