[all-commits] [llvm/llvm-project] 647ddc: [libc++] Add missing __has_include checks for C he...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Nov 23 06:50:36 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 647ddc08f43c05131031cfe3c6114d7870f5a117
https://github.com/llvm/llvm-project/commit/647ddc08f43c05131031cfe3c6114d7870f5a117
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2022-11-23 (Wed, 23 Nov 2022)
Changed paths:
M libcxx/include/cassert
M libcxx/include/csignal
M libcxx/include/cstdarg
M libcxx/include/ctime
Log Message:
-----------
[libc++] Add missing __has_include checks for C headers not provided by libc++
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.
Differential Revision: https://reviews.llvm.org/D138512
More information about the All-commits
mailing list