diff options
author | Andrew Kaster <akaster@serenityos.org> | 2023-01-07 14:24:39 -0700 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-01-21 10:43:59 -0700 |
commit | 5b33381875aadd8d5519a31391f3ba080b3b7199 (patch) | |
tree | be24eeaa5352d14fed6d6531d17c3b202867b2af /Userland | |
parent | c87557e9c1865fa1a6440de34ff6ce6fc858a2b7 (diff) | |
download | serenity-5b33381875aadd8d5519a31391f3ba080b3b7199.zip |
LibC: Don't include sys/cdefs.h in ttydefaults as it is used in Kernel
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibC/sys/ttydefaults.h | 11 |
1 files 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 <termios.h> # endif -# include <sys/cdefs.h> # 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 |