Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libcxx] don't
#include <cwchar>
if wide chars aren't enabled (llvm…
…#99911) Pull request llvm#96032 unconditionall adds the `cwchar` include in the `format` umbrella header. However support for wchar_t can be disabled in the build system (LIBCXX_ENABLE_WIDE_CHARACTERS). This patch guards against inclusion of `cwchar` in `format` by checking the `_LIBCPP_HAS_NO_WIDE_CHARACTERS` define. For clarity I've also merged the include header section that `cwchar` was in with the one above as they were both guarded by the same `#if` logic.
- Loading branch information