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:
parent
c87557e9c1
commit
5b33381875
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue