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