[all-commits] [llvm/llvm-project] ec5679: [libcxx] don't `#include <cwchar>` if wide chars a...
Ties Stuij via All-commits
all-commits at lists.llvm.org
Tue Jul 23 06:09:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ec56790c3b27df4fa1513594ca9a74fd8ad5bf7f
https://github.com/llvm/llvm-project/commit/ec56790c3b27df4fa1513594ca9a74fd8ad5bf7f
Author: Ties Stuij <ties.stuij at arm.com>
Date: 2024-07-23 (Tue, 23 Jul 2024)
Changed paths:
M libcxx/include/format
Log Message:
-----------
[libcxx] don't `#include <cwchar>` if wide chars aren't enabled (#99911)
Pull request #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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list