Skip to content

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Feb 10, 2024

Backport 30cd183

Requested by: @poyaoc97

-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build
without this change.

(cherry picked from commit 30cd183)
@llvmbot llvmbot requested a review from a team as a code owner February 10, 2024 15:55
@llvmbot llvmbot added this to the LLVM 18.X Release milestone Feb 10, 2024
@llvmbot
Copy link
Member Author

llvmbot commented Feb 10, 2024

@mordante What do you think about merging this PR to the release branch?

@llvmbot llvmbot requested a review from mordante February 10, 2024 15:55
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Feb 10, 2024
@llvmbot
Copy link
Member Author

llvmbot commented Feb 10, 2024

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

Changes

Backport 30cd183

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 --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

@tstellar tstellar merged commit 91cb452 into llvm:release/18.x Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants