summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-21 20:17:51 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-21 18:27:50 +0100
commit43948aee51f6e535eb98a73666d4c76deabe7b44 (patch)
treecf44c60eaf8ac13812fe18b1dd2eaa724853a213 /Userland/Libraries
parent255da9b02bdd821d9b25182e943e2102c358263a (diff)
downloadserenity-43948aee51f6e535eb98a73666d4c76deabe7b44.zip
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/stdarg.h11
1 files changed, 0 insertions, 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 <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