1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +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
# 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