Skip to content

Commit 47e0f5c

Browse files
poyaoc97copybara-github
authored andcommitted
[libc++][modules] Fix disabling Unicode (#81294)
-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build without this change. NOKEYCHECK=True GitOrigin-RevId: 30cd1838dc334775f7a29f57b581f2bdda3f0ea1
1 parent ee3ea23 commit 47e0f5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)