mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-17 18:35:48 +00:00

We already use the compiler's versions of these; this just moves from having libc #include_next them to having libc just omit them entirely, which is simpler. This removes the special code to define musl's include guard, however I originally added that when I was still working out how WASI's stddef.h would interact with other code. I believe it's no longer important.
22 lines
351 B
C
22 lines
351 B
C
#ifndef _STDARG_H
|
|
#define _STDARG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_va_list
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
#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)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|