From 5b33381875aadd8d5519a31391f3ba080b3b7199 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 7 Jan 2023 14:24:39 -0700 Subject: LibC: Don't include sys/cdefs.h in ttydefaults as it is used in Kernel --- Userland/Libraries/LibC/sys/ttydefaults.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibC/sys/ttydefaults.h b/Userland/Libraries/LibC/sys/ttydefaults.h index c7ccbf381e..0719830cdf 100644 --- a/Userland/Libraries/LibC/sys/ttydefaults.h +++ b/Userland/Libraries/LibC/sys/ttydefaults.h @@ -44,14 +44,16 @@ # else # include # endif -# include # ifdef __clang__ # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wc99-designator" # endif -__BEGIN_DECLS +# ifdef __cplusplus +extern "C" { +# endif + static const cc_t ttydefchars[NCCS] = { [VINTR] = CINTR, [VQUIT] = CQUIT, @@ -76,5 +78,8 @@ static const cc_t ttydefchars[NCCS] = { # pragma clang diagnostic pop # endif -__END_DECLS +# ifdef __cplusplus +} +# endif + #endif -- cgit v1.2.3