From: Danny S. <dan...@us...> - 2001-08-28 21:49:41
|
Update of /cvsroot/mingw/runtime/include In directory usw-pr-cvs1:/tmp/cvs-serv8101/runtime/include Modified Files: stdarg.h stdio.h varargs.h Log Message: * 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. Index: stdarg.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdarg.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** stdarg.h 2001/06/05 00:26:30 1.2 --- stdarg.h 2001/08/28 21:49:38 1.3 *************** *** 53,59 **** #ifndef _VA_LIST #define _VA_LIST typedef char* va_list; #endif ! /* --- 53,62 ---- #ifndef _VA_LIST #define _VA_LIST + #if defined __GNUC__ && __GNUC__ >= 3 + typedef __builtin_va_list va_list; + #else typedef char* va_list; #endif ! #endif /* Index: stdio.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdio.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** stdio.h 2001/08/01 03:46:27 1.4 --- stdio.h 2001/08/28 21:49:38 1.5 *************** *** 128,136 **** * using stdio.h and varargs.h in the same file, so I do the typedef myself. */ ! #ifndef _VA_LIST #define _VA_LIST ! typedef char* va_list; #endif ! /* * The structure underlying the FILE type. --- 128,139 ---- * using stdio.h and varargs.h in the same file, so I do the typedef myself. */ ! #ifndef _VA_LIST #define _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. Index: varargs.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/varargs.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** varargs.h 2001/06/05 00:26:30 1.2 --- varargs.h 2001/08/28 21:49:38 1.3 *************** *** 53,59 **** #ifndef RC_INVOKED ! #ifndef _VA_LIST ! #define _VA_LIST typedef char* va_list; #endif --- 53,63 ---- #ifndef RC_INVOKED ! #ifndef _VA_LIST ! #define _VA_LIST ! #if defined __GNUC__ && __GNUC__ >= 3 ! typedef __builtin_va_list va_list; ! #else typedef char* va_list; + #endif #endif |