mirror of
https://github.com/mintsuki/freestanding-headers
synced 2024-11-22 04:21:20 +03:00
21 lines
521 B
C
21 lines
521 B
C
#if !defined(_STDARG_H) || defined(__LIBC_CXX_WRAP)
|
|
#if !defined(__LIBC_CXX_WRAP)
|
|
#define _STDARG_H 1
|
|
#endif
|
|
|
|
typedef __builtin_va_list va_list;
|
|
|
|
#ifndef __STDARG_H_MACROS
|
|
#define __STDARG_H_MACROS 1
|
|
|
|
#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)
|
|
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
|
|
# define va_copy(d, s) __builtin_va_copy(d, s)
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|