mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 06:38:22 +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
Notes:
sideshowbarker
2024-07-17 07:48:42 +09:00
Author: https://github.com/ADKaster
Commit: 5b33381875
Pull-request: https://github.com/SerenityOS/serenity/pull/16896
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