Skip to content

Commit 91cb452

Browse files
poyaoc97llvmbot
authored andcommitted
[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 30cd183)
1 parent 391d948 commit 91cb452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcxx/modules/std/ostream.inc

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ export namespace std {
3333
using std::println;
3434

3535
using std::vprint_nonunicode;
36+
# ifndef _LIBCPP_HAS_NO_UNICODE
3637
using std::vprint_unicode;
37-
# endif // _LIBCPP_STD_VER >= 23
38+
# endif // _LIBCPP_HAS_NO_UNICODE
39+
# endif // _LIBCPP_STD_VER >= 23
3840

3941
#endif // _LIBCPP_HAS_NO_LOCALIZATION
4042
} // namespace std

0 commit comments

Comments
 (0)