diff options
author | Earnie Boyd <earnie@users.sf.net> | 2001-08-29 17:43:59 +0400 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2001-08-29 17:43:59 +0400 |
commit | 375dab8418e5b0ddbaed1e66620de9a4e3011123 (patch) | |
tree | 33cec7ac8bff0f3086526dd244bb25ff3e6f3984 /winsup/mingw/include/stdio.h | |
parent | 1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb (diff) |
* 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.
Diffstat (limited to 'winsup/mingw/include/stdio.h')
-rw-r--r-- | winsup/mingw/include/stdio.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h index d288f0009..a5a3e7c9e 100644 --- a/winsup/mingw/include/stdio.h +++ b/winsup/mingw/include/stdio.h @@ -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. * |