Fix gv for long longs
[tinycc/miki.git] / stdarg.h
bloba9b22b7b6d500b853208121e464783d7dc7a1264
1 #ifndef _STDARG_H
2 #define _STDARG_H
4 typedef char *va_list;
6 /* only correct for i386 */
7 #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
8 #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
9 #define va_copy(dest, src) (dest) = (src)
10 #define va_end(ap)
12 /* fix a buggy dependency on GCC in libio.h */
13 typedef va_list __gnuc_va_list;
14 #define _VA_LIST_DEFINED
16 #endif