blob: f55fcc3019b6619ce58c0f2120cde0d7eb166619 [file] [log] [blame]
Joel Kitchinga1b15172020-03-12 18:15:34 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3/**
Elyes Haouas94bfdd12024-05-27 10:31:19 +02004 * Note: This file is only for POSIX compatibility.
Joel Kitchinga1b15172020-03-12 18:15:34 +08005 */
6
7#ifndef STDARG_H
8#define STDARG_H
9
10#include <stddef.h>
11
12#define va_start(v, l) __builtin_va_start(v, l)
13#define va_end(v) __builtin_va_end(v)
14#define va_arg(v, l) __builtin_va_arg(v, l)
15typedef __builtin_va_list va_list;
16
17int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
18
19#endif /* STDARG_H */