mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
c0891ac15f
Ship minimal stdarg.h (1 type, 4 macros) as <linux/stdarg.h>. stdarg.h is the only userspace header commonly used in the kernel. GPL 2 version of <stdarg.h> can be extracted from http://archive.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2_4.2.4.orig.tar.gz Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
12 lines
313 B
C
12 lines
313 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#ifndef _LINUX_STDARG_H
|
|
#define _LINUX_STDARG_H
|
|
|
|
typedef __builtin_va_list va_list;
|
|
#define va_start(v, l) __builtin_va_start(v, l)
|
|
#define va_end(v) __builtin_va_end(v)
|
|
#define va_arg(v, T) __builtin_va_arg(v, T)
|
|
#define va_copy(d, s) __builtin_va_copy(d, s)
|
|
|
|
#endif
|