summaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-06-22 10:29:26 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-06-22 10:29:26 +0000
commit25febfc4314f4bf8542412a5823620756d68d003 (patch)
tree0fcf8fbca242d2ab716df7eb15a49d2654b56f02 /gcc/ginclude/stdarg.h
parent7c92f15a0b29a4c28f2378cb7f6c81d29da1dc55 (diff)
downloadgcc-25febfc4314f4bf8542412a5823620756d68d003.tar.gz
Protect va_list definition from SCO headers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14286 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rw-r--r--gcc/ginclude/stdarg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index adb22fb9ee5..7d393732b07 100644
--- a/gcc/ginclude/stdarg.h
+++ b/gcc/ginclude/stdarg.h
@@ -136,7 +136,7 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#undef _BSD_VA_LIST
#endif
-#if defined(__svr4__) || defined(_SCO_DS)
+#if defined(__svr4__) || (defined(_SCO_DS) && !defined(__VA_LIST))
/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
so we must avoid testing it and setting it here.
SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
@@ -149,6 +149,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#endif
#endif /* __i860__ */
typedef __gnuc_va_list va_list;
+#ifdef _SCO_DS
+#define __VA_LIST
+#endif
#endif /* _VA_LIST_ */
#else /* not __svr4__ || _SCO_DS */