1 #ifndef _LIBPCC_STDARG_H_
2 #ifndef _ANSI_STDARG_H_
4 #ifndef __need___va_list
5 #define _LIBPCC_STDARG_H_
6 #define _ANSI_STDARG_H_
9 #if defined(_LIBPCC_STDARG_H_) || defined(__need___va_list)
11 typedef char * va_list;
14 /* For broken glibc headers */
15 #ifndef __GNUC_VA_LIST
16 #define __gnuc_va_list void *
17 #define __GNUC_VA_LIST
22 #ifdef _LIBPCC_STDARG_H_
24 #define va_start(ap, last) __builtin_stdarg_start((ap), last)
25 #define va_arg(ap, type) __builtin_va_arg((ap), type)
26 #define va_end(ap) __builtin_va_end((ap))
27 #define va_copy(dest, src) __builtin_va_copy((dest), (src))
31 #undef __need___va_list