diff options
author | Maximilian Brune <maximilian.brune@9elements.com> | 2023-08-08 21:43:18 +0200 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-08-17 16:46:07 +0000 |
commit | 99a8287f08424d00d0cf09886b967983789c2368 (patch) | |
tree | cc1d49071fe6814de6ccea19627ae4bd2c988bcb /payloads | |
parent | 2d482386182e4effa109fee6aa5acdf422557507 (diff) |
libpayload/include/stdarg.h: Add va_copy builtin
Add the builtin to copy variadic lists/arguments.
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I4507b901bdce052c5d1701fdf825eb8a96a5b55a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77097
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/include/stdarg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/stdarg.h b/payloads/libpayload/include/stdarg.h index 772d07234e..340cd44fac 100644 --- a/payloads/libpayload/include/stdarg.h +++ b/payloads/libpayload/include/stdarg.h @@ -40,6 +40,7 @@ #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) typedef __builtin_va_list va_list; #else #include_next <stdarg.h> |