[llvm-branch-commits] [libcxx] release/18.x: [libc++][modules] Fix disabling Unicode (#81294) (PR #81361)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Feb 10 07:55:42 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

<details>
<summary>Changes</summary>

Backport 30cd1838dc334775f7a29f57b581f2bdda3f0ea1

Requested by: @<!-- -->poyaoc97

---
Full diff: https://github.com/llvm/llvm-project/pull/81361.diff


1 Files Affected:

- (modified) libcxx/modules/std/ostream.inc (+3-1) 


``````````diff
diff --git a/libcxx/modules/std/ostream.inc b/libcxx/modules/std/ostream.inc
index 8fcbfb4bdc1828..0e0e2d54fe6bae 100644
--- a/libcxx/modules/std/ostream.inc
+++ b/libcxx/modules/std/ostream.inc
@@ -33,8 +33,10 @@ export namespace std {
   using std::println;
 
   using std::vprint_nonunicode;
+#    ifndef _LIBCPP_HAS_NO_UNICODE
   using std::vprint_unicode;
-#  endif // _LIBCPP_STD_VER >= 23
+#    endif // _LIBCPP_HAS_NO_UNICODE
+#  endif   // _LIBCPP_STD_VER >= 23
 
 #endif // _LIBCPP_HAS_NO_LOCALIZATION
 } // namespace std

``````````

</details>


https://github.com/llvm/llvm-project/pull/81361


More information about the llvm-branch-commits mailing list