From: Richard Kenner Date: Tue, 21 Feb 1995 23:53:15 +0000 (-0500) Subject: Test _VA_LIST_DEFINED macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4f0e4979f978c050c538474a081e2e2cf438e66;p=gcc.git Test _VA_LIST_DEFINED macro. From-SVN: r9014 --- diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 1c6e1fc8ea3..e434a263086 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -137,6 +137,8 @@ typedef __gnuc_va_list va_list; (Note that the comments in NET 2's ansi.h are incorrect for _VA_LIST_--see stdio.h!) */ #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__FreeBSD__) +/* The macro _VA_LIST_DEFINED is used in Windows NT 3.5 */ +#ifndef _VA_LIST_DEFINED /* The macro _VA_LIST is used in SCO Unix 3.2. */ #ifndef _VA_LIST /* The macro _VA_LIST_T_H is used in the Bull dpx2 */ @@ -146,9 +148,11 @@ typedef __gnuc_va_list va_list; #define _VA_LIST_ #endif #define _VA_LIST +#define _VA_LIST_DEFINED typedef __gnuc_va_list va_list; #endif /* not _VA_LIST_T_H */ #endif /* not _VA_LIST */ +#endif /* not _VA_LIST_DEFINED */ #endif /* not _VA_LIST_ */ #endif /* not __svr4__ */ diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h index 6dd31ca17a4..2985f6c1857 100644 --- a/gcc/ginclude/varargs.h +++ b/gcc/ginclude/varargs.h @@ -152,6 +152,8 @@ typedef __gnuc_va_list va_list; Sequent defines _VA_LIST_ in to be the type to use for va_list (``typedef _VA_LIST_ va_list'') */ #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) +/* The macro _VA_LIST_DEFINED is used in Windows NT 3.5 */ +#ifndef _VA_LIST_DEFINED /* The macro _VA_LIST is used in SCO Unix 3.2. */ #ifndef _VA_LIST /* The macro _VA_LIST_T_H is used in the Bull dpx2 */ @@ -161,9 +163,11 @@ typedef __gnuc_va_list va_list; #define _VA_LIST_ #endif #define _VA_LIST +#define _VA_LIST_DEFINED typedef __gnuc_va_list va_list; #endif /* not _VA_LIST_T_H */ #endif /* not _VA_LIST */ +#endif /* not _VA_LIST_DEFINED */ #endif /* not _VA_LIST_, except on certain systems */ #endif /* not __svr4__ */