aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-04-04 07:17:15 +0000
committerRichard Stallman <rms@gnu.org>1993-04-04 07:17:15 +0000
commitb7dd0967b071a1e619fa955ce99dfdbc33aa65f6 (patch)
tree0b441d287f4d897182ecaeb7aeec6f016ea36895 /gcc/ginclude/stdarg.h
parent32e69e1dc8631017cc4def2dbed69cdcd5a92257 (diff)
downloadgcc-b7dd0967b071a1e619fa955ce99dfdbc33aa65f6.zip
gcc-b7dd0967b071a1e619fa955ce99dfdbc33aa65f6.tar.gz
gcc-b7dd0967b071a1e619fa955ce99dfdbc33aa65f6.tar.bz2
[__svr4__]: Test only _VA_LIST_ to avoid dup typedef.
(This used to be if __SVR4_2__.) From-SVN: r3999
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rw-r--r--gcc/ginclude/stdarg.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index 2669eab..e19626e 100644
--- a/gcc/ginclude/stdarg.h
+++ b/gcc/ginclude/stdarg.h
@@ -112,14 +112,16 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#undef _BSD_VA_LIST
#endif
-#ifdef __SVR4_2__
+#ifdef __svr4__
/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
- so we must avoid testing it and setting it here. */
+ so we must avoid testing it and setting it here.
+ SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
+ have no conflict with that. */
#ifndef _VA_LIST_
#define _VA_LIST_
typedef __gnuc_va_list va_list;
#endif /* _VA_LIST_ */
-#else /* not __SVR4_2__ */
+#else /* not __svr4__ */
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
But on BSD NET2 we must not test or define or undef it.
@@ -140,7 +142,7 @@ typedef __gnuc_va_list va_list;
#endif /* not _VA_LIST */
#endif /* not _VA_LIST_ */
-#endif /* not __SVR4_2__ */
+#endif /* not __svr4__ */
#endif /* _STDARG_H */