LibC: Don't #define away __{BEGIN,END}_DECLS in stdarg.h

That would force anything that includes this to have language-specific
linkage, and absolutely break `sys/cdefs.h`.

Fixes #5452.
This commit is contained in:
AnotherTest 2021-02-21 20:17:51 +03:30 committed by Andreas Kling
parent 255da9b02b
commit 43948aee51
Notes: sideshowbarker 2024-07-18 22:02:27 +09:00

View File

@ -26,19 +26,8 @@
#pragma once
#if defined(KERNEL)
# define __BEGIN_DECLS
# define __END_DECLS
#else
# include <sys/cdefs.h>
#endif
__BEGIN_DECLS
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, l) __builtin_va_arg(v, l)
__END_DECLS