Skip to content

Commit ab42c5f

Browse files
poyaoc97tstellar
authored andcommitted
[libc++][modules] Fix disabling Unicode (llvm#81294)
-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build without this change. (cherry picked from commit 30cd183)
1 parent 2d16778 commit ab42c5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcxx/modules/std/ostream.inc

Lines changed: 3 additions & 1 deletion
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)