Misc updates to stdarg.h to improve resiliency

This commit is contained in:
mintsuki 2023-04-25 23:25:39 +02:00
parent e5667ae492
commit fd410877c3

View File

@ -8,10 +8,14 @@ typedef __builtin_va_list va_list;
#ifndef __FSTD_HDRS_STDARG_H_MACROS
#define __FSTD_HDRS_STDARG_H_MACROS 1
#undef va_start
#define va_start(v, l) __builtin_va_start(v, l)
#undef va_end
#define va_end(v) __builtin_va_end(v)
#undef va_arg
#define va_arg(v, l) __builtin_va_arg(v, l)
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
# undef va_copy
# define va_copy(d, s) __builtin_va_copy(d, s)
#endif