1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

LibC: Don't include sys/cdefs.h in ttydefaults as it is used in Kernel

This commit is contained in:
Andrew Kaster 2023-01-07 14:24:39 -07:00 committed by Andrew Kaster
parent c87557e9c1
commit 5b33381875

View file

@ -44,14 +44,16 @@
# else # else
# include <termios.h> # include <termios.h>
# endif # endif
# include <sys/cdefs.h>
# ifdef __clang__ # ifdef __clang__
# pragma clang diagnostic push # pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-designator" # pragma clang diagnostic ignored "-Wc99-designator"
# endif # endif
__BEGIN_DECLS # ifdef __cplusplus
extern "C" {
# endif
static const cc_t ttydefchars[NCCS] = { static const cc_t ttydefchars[NCCS] = {
[VINTR] = CINTR, [VINTR] = CINTR,
[VQUIT] = CQUIT, [VQUIT] = CQUIT,
@ -76,5 +78,8 @@ static const cc_t ttydefchars[NCCS] = {
# pragma clang diagnostic pop # pragma clang diagnostic pop
# endif # endif
__END_DECLS # ifdef __cplusplus
}
# endif
#endif #endif