coreboot/src/include/stdarg.h
Elyes Haouas 94bfdd1282 tree: Remove unused <stdarg.h>
<stdarg.h> header is used to define macros for handling variable
argument lists in functions like printf. It does not depend on the string
or memory manipulation functions provided by <string.h>.
So let follow conventions and include only the necessary headers in each
header file.

Change-Id: I07ffc65b7feefb8ec4ab8dd268113f9ed8d24685
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82664
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2024-05-28 03:22:34 +00:00

19 lines
424 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/**
* Note: This file is only for POSIX compatibility.
*/
#ifndef STDARG_H
#define STDARG_H
#include <stddef.h>
#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)
typedef __builtin_va_list va_list;
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
#endif /* STDARG_H */