From 27989a8e34a44ff8e6a2e5b011123a09fd8a82c7 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Fri, 17 Aug 2018 10:45:47 +0100 Subject: libc: Introduce files from SCC Taken from http://git.simple-cc.org/scc/ from the following commit: 67508ad14af314cea2229783d3c084f28c41daf0 Permission has been granted from the author to use them under the license BSD-3-Clause instead of ISC. Change-Id: I65c0ce3ab60c49d34a57533af12a74bd7bde88e5 Signed-off-by: Antonio Nino Diaz --- include/lib/libc/stdarg.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/lib/libc/stdarg.h (limited to 'include/lib/libc/stdarg.h') diff --git a/include/lib/libc/stdarg.h b/include/lib/libc/stdarg.h new file mode 100644 index 00000000..3c20788b --- /dev/null +++ b/include/lib/libc/stdarg.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2012-2017 Roberto E. Vargas Caballero + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef _STDARG_H +#define _STDARG_H + +#define va_list __builtin_va_list +#define va_start(ap, last) __builtin_va_start(ap, last) +#define va_end(ap) __builtin_va_end(ap) +#define va_copy(to, from) __builtin_va_copy(to, from) +#define va_arg(to, type) __builtin_va_arg(to, type) + +#endif -- cgit v1.2.3