This makes the library consistent in how it handles C library headers. For C headers provided by libc++,
we unconditionally include <foo.h> from <cfoo>, and then <foo.h> conditionally include_next <foo.h>.
For headers not provided by libc++, <cfoo> conditionally includes the system's <foo.h> directly.
Details
Details
- Reviewers
philnik - Group Reviewers
Restricted Project - Commits
- rG647ddc08f43c: [libc++] Add missing __has_include checks for C headers not provided by libc++
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with green CI.
libcxx/include/cassert | ||
---|---|---|
25 | Could we add something like #ifdef _LIBCPP_ASSERT_H # error "Does libc++ provide an assert.h now?" #endif to make sure? |
Could we add something like
to make sure?