X-Git-Url: https://pd.if.org/git/?p=lice;a=blobdiff_plain;f=include%2Fstdarg.h;fp=include%2Fstdarg.h;h=794c41e08c6e4f9f794d802f87e4cf608bf12f75;hp=0000000000000000000000000000000000000000;hb=8b16b33c67aaa843ec60f46b88cbb1f622a0336c;hpb=d35f8a55b66d88d992b733806ca5159d36a812a2 diff --git a/include/stdarg.h b/include/stdarg.h new file mode 100644 index 0000000..794c41e --- /dev/null +++ b/include/stdarg.h @@ -0,0 +1,20 @@ +#ifndef __STDARG_HDR +#define __STDARG_HDR + +typedef struct { + unsigned int gp_offset; + unsigned int fp_offset; + void *overflow_arg_area; + void *reg_save_area; +} va_list[1]; + +#define va_start(AP, LAST) __builtin_va_start(AP) +#define va_arg(AP, TYPE) __builtin_va_arg(AP, TYPE) +#define va_end(AP) 1 +#define va_copy(DEST, SRC) ((DEST)[0] = (SRC)[0]) + + +#define __GNUC_VA_LIST 1 +typedef va_list __gnuc_va_list; // deal with gnuc headers + +#endif