both .globl and .global directives are accepted by as
[tinycc.git] / stdarg.h
blobd562d6ddcc312bf2cab71b4064c9c9e987a4f884
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_end(ap)
11 /* fix a buggy dependency on GCC in libio.h */
12 typedef va_list __gnuc_va_list;
13 #define _VA_LIST_DEFINED
15 #endif