* include/stdarg.h (va_list): Typedef as __builtin_va_list if

__GNUC__ >= 3.
	* include/varargs.h (va_list): Ditto.
	* include/stdio.h (va_list): Ditto.
This commit is contained in:
Earnie Boyd 2001-08-29 13:43:59 +00:00
parent 1ae900d62f
commit 375dab8418
4 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdarg.h (va_list): Typedef as __builtin_va_list if
__GNUC__ >= 3.
* include/varargs.h (va_list): Ditto.
* include/stdio.h (va_list): Ditto.
2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.

View File

@ -52,9 +52,12 @@
#ifndef _VA_LIST
#define _VA_LIST
#if defined __GNUC__ && __GNUC__ >= 3
typedef __builtin_va_list va_list;
#else
typedef char* va_list;
#endif
#endif
/*
* Amount of space required in an argument list (ie. the stack) for an

View File

@ -127,11 +127,14 @@
* functions later on in the file which use va_list. That conflicts with
* using stdio.h and varargs.h in the same file, so I do the typedef myself.
*/
#ifndef _VA_LIST
#ifndef _VA_LIST
#define _VA_LIST
typedef char* va_list;
#if defined __GNUC__ && __GNUC__ >= 3
typedef __builtin_va_list va_list;
#else
typedef char* va_list;
#endif
#endif
/*
* The structure underlying the FILE type.
*

View File

@ -52,10 +52,14 @@
#ifndef RC_INVOKED
#ifndef _VA_LIST
#define _VA_LIST
#ifndef _VA_LIST
#define _VA_LIST
#if defined __GNUC__ && __GNUC__ >= 3
typedef __builtin_va_list va_list;
#else
typedef char* va_list;
#endif
#endif
/*
* Amount of space required in an argument list (ie. the stack) for an