Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / pcc / dist / pcc-libs / libpcc / include / libpcc_stdarg.h
blob481f3a7be3249a3d498b0e65ad356bbf0f547433
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_
7 #endif
9 #if defined(_LIBPCC_STDARG_H_) || defined(__need___va_list)
10 #ifndef _VA_LIST
11 typedef char * va_list;
12 #define _VA_LIST
13 #endif
14 /* For broken glibc headers */
15 #ifndef __GNUC_VA_LIST
16 #define __gnuc_va_list void *
17 #define __GNUC_VA_LIST
18 #endif
20 #endif
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))
29 #endif
31 #undef __need___va_list
33 #endif
34 #endif