Skip to content

Commit 5c3323a

Browse files
authored
[libc++] Remove <stdbool.h> (#164595)
`<stdbool.h>` is provided by the compiler and both Clang and GCC provide C++-aware versions of these headers, making our own wrapper header entirely unnecessary.
1 parent bbde792 commit 5c3323a

File tree

3 files changed

+0
-49
lines changed

3 files changed

+0
-49
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,6 @@ set(files
10661066
sstream
10671067
stack
10681068
stdatomic.h
1069-
stdbool.h
10701069
stddef.h
10711070
stdexcept
10721071
stdio.h

libcxx/include/module.modulemap.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,10 +2437,6 @@ module std_stdatomic_h [system] {
24372437
header "stdatomic.h"
24382438
export *
24392439
}
2440-
module std_stdbool_h [system] {
2441-
// <stdbool.h>'s __bool_true_false_are_defined macro requires textual inclusion.
2442-
textual header "stdbool.h"
2443-
}
24442440
module std_stddef_h [system] {
24452441
// <stddef.h> supports being included multiple times with different pre-defined macros
24462442
textual header "stddef.h"

libcxx/include/stdbool.h

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)