From fd410877c3ef3c6e032df72590fb3b6f6b310014 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 25 Apr 2023 23:25:39 +0200 Subject: [PATCH] Misc updates to stdarg.h to improve resiliency --- stdarg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdarg.h b/stdarg.h index 6d5e385..6d2950d 100644 --- a/stdarg.h +++ b/stdarg.h @@ -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