From 43948aee51f6e535eb98a73666d4c76deabe7b44 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sun, 21 Feb 2021 20:17:51 +0330 Subject: [PATCH] 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. --- Userland/Libraries/LibC/stdarg.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Userland/Libraries/LibC/stdarg.h b/Userland/Libraries/LibC/stdarg.h index 5725ead619..b103f32d6e 100644 --- a/Userland/Libraries/LibC/stdarg.h +++ b/Userland/Libraries/LibC/stdarg.h @@ -26,19 +26,8 @@ #pragma once -#if defined(KERNEL) -# define __BEGIN_DECLS -# define __END_DECLS -#else -# include -#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