Skip to content

Commit 978bcff

Browse files
author
Alexey Samsonov
committed
[libc] Make two include/llvm-libc-types/ headers more self-contained.
* imaxdiv_t.h needs intmax_t. Get it from <stdint.h> directly instead of relying on prior inclusion inside generated inttypes.h. * include <termios-macros.h> for struct termios to get the #defined constant. We do allow inclusion of macro headers from types headers in other places.
1 parent 4b3fbf5 commit 978bcff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libc/include/llvm-libc-types/struct_termios.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct termios {
2323
#ifdef __linux__
2424
cc_t c_line; // Line discipline
2525
#endif // __linux__
26-
// NCCS is defined in llvm-libc-macros/termios-macros.h.
2726
cc_t c_cc[NCCS]; // Control characters
2827
#ifdef __linux__
2928
speed_t c_ispeed; // Input speed

0 commit comments

Comments
 (0)