Skip to content

Commit

Permalink
[libc++][modules] Fix disabling Unicode (#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.
  • Loading branch information
poyaoc97 authored Feb 10, 2024
1 parent 59037c0 commit 30cd183
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 30cd183

Please sign in to comment.