mirror of
https://github.com/mintsuki/freestanding-headers
synced 2024-11-22 04:21:20 +03:00
Misc updates to stdarg.h to improve resiliency
This commit is contained in:
parent
e5667ae492
commit
fd410877c3
4
stdarg.h
4
stdarg.h
@ -8,10 +8,14 @@ typedef __builtin_va_list va_list;
|
|||||||
#ifndef __FSTD_HDRS_STDARG_H_MACROS
|
#ifndef __FSTD_HDRS_STDARG_H_MACROS
|
||||||
#define __FSTD_HDRS_STDARG_H_MACROS 1
|
#define __FSTD_HDRS_STDARG_H_MACROS 1
|
||||||
|
|
||||||
|
#undef va_start
|
||||||
#define va_start(v, l) __builtin_va_start(v, l)
|
#define va_start(v, l) __builtin_va_start(v, l)
|
||||||
|
#undef va_end
|
||||||
#define va_end(v) __builtin_va_end(v)
|
#define va_end(v) __builtin_va_end(v)
|
||||||
|
#undef va_arg
|
||||||
#define va_arg(v, l) __builtin_va_arg(v, l)
|
#define va_arg(v, l) __builtin_va_arg(v, l)
|
||||||
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
|
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
|
||||||
|
# undef va_copy
|
||||||
# define va_copy(d, s) __builtin_va_copy(d, s)
|
# define va_copy(d, s) __builtin_va_copy(d, s)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user