[libcxx-commits] [libcxx] 30cd183 - [libc++][modules] Fix disabling Unicode (#81294)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 10 06:22:20 PST 2024
Author: Po-yao Chang
Date: 2024-02-10T15:22:16+01:00
New Revision: 30cd1838dc334775f7a29f57b581f2bdda3f0ea1
URL: https://github.com/llvm/llvm-project/commit/30cd1838dc334775f7a29f57b581f2bdda3f0ea1
DIFF: https://github.com/llvm/llvm-project/commit/30cd1838dc334775f7a29f57b581f2bdda3f0ea1.diff
LOG: [libc++][modules] Fix disabling Unicode (#81294)
-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build
without this change.
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 libcxx-commits
mailing list