[llvm-branch-commits] [libcxx] 91cb452 - [libc++][modules] Fix disabling Unicode (#81294)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Feb 10 17:47:57 PST 2024
Author: Po-yao Chang
Date: 2024-02-10T15:55:03Z
New Revision: 91cb452c3cd1e527dd74ece20a83b9fb2ffa6f5c
URL: https://github.com/llvm/llvm-project/commit/91cb452c3cd1e527dd74ece20a83b9fb2ffa6f5c
DIFF: https://github.com/llvm/llvm-project/commit/91cb452c3cd1e527dd74ece20a83b9fb2ffa6f5c.diff
LOG: [libc++][modules] Fix disabling Unicode (#81294)
-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build
without this change.
(cherry picked from commit 30cd1838dc334775f7a29f57b581f2bdda3f0ea1)
Added:
Modified:
libcxx/modules/std/ostream.inc
Removed:
################################################################################
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
More information about the llvm-branch-commits
mailing list