summaryrefslogtreecommitdiff
path: root/410kern/inc/stdarg.h
blob: ba9add0ba7d21ddcb58649e78ffddb3a79d7f191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _STDARG_H_
#define _STDARG_H_

/* This is awful, but really these are compiler intrinsics, so we use the
 * GNU compiler intrinsics.
 */

#ifdef __GNUC__
typedef __builtin_va_list va_list;
#define va_start(v,l)   __builtin_va_start(v,l)
#define va_end(v)       __builtin_va_end(v)
#define va_arg(v,l)     __builtin_va_arg(v,l)
#define va_copy(d,s)    __builtin_va_copy(d,s)
#else
#error "Don't know how to use varargs not on GNUC, sorry."
#endif

#endif