[llvm-branch-commits] [libcxx] release/19.x: [libcxx] don't `#include <cwchar>` if wide chars aren't enabled (#99911) (PR #106788)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Aug 30 13:01:13 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport ec56790c3b27df4fa1513594ca9a74fd8ad5bf7f
Requested by: @<!-- -->ldionne
---
Full diff: https://github.com/llvm/llvm-project/pull/106788.diff
1 Files Affected:
- (modified) libcxx/include/format (+6-6)
``````````diff
diff --git a/libcxx/include/format b/libcxx/include/format
index c3f2b45f0f7305..a88b3ef8528e2d 100644
--- a/libcxx/include/format
+++ b/libcxx/include/format
@@ -237,21 +237,21 @@ namespace std {
# include <cstdint>
# include <cstdlib>
# include <cstring>
-# include <cwchar>
# include <initializer_list>
# include <limits>
+# include <locale>
# include <new>
# include <optional>
+# include <queue>
+# include <stack>
# include <stdexcept>
# include <string>
# include <string_view>
# include <tuple>
-#endif
-#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
-# include <locale>
-# include <queue>
-# include <stack>
+# if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)
+# include <cwchar>
+# endif
#endif
#endif // _LIBCPP_FORMAT
``````````
</details>
https://github.com/llvm/llvm-project/pull/106788
More information about the llvm-branch-commits
mailing list