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
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.
- Loading branch information