[all-commits] [llvm/llvm-project] 6f6234: [libcxx] don't `#include <cwchar>` if wide chars a...
Ties Stuij via All-commits
all-commits at lists.llvm.org
Sun Sep 1 01:21:08 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 6f623478d48c171d59e95b25ea2aca49dca8f135
https://github.com/llvm/llvm-project/commit/6f623478d48c171d59e95b25ea2aca49dca8f135
Author: Ties Stuij <ties.stuij at arm.com>
Date: 2024-09-01 (Sun, 01 Sep 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.
(cherry picked from commit ec56790c3b27df4fa1513594ca9a74fd8ad5bf7f)
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