Skip to content

Commit

Permalink
[libc++][modules] Fix disabling Unicode (llvm#81294)
Browse files Browse the repository at this point in the history
-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build
without this change.

(cherry picked from commit 30cd183)
  • Loading branch information
poyaoc97 authored and tstellar committed Feb 14, 2024
1 parent 2d16778 commit ab42c5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libcxx/modules/std/ostream.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab42c5f

Please sign in to comment.