From a992226863d5319c04f2e972a7cc28cdf3fa07db Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 23 Dec 2024 17:43:22 -0500 Subject: [PATCH] [libc] uncomment wcwidth for win32 --- components/libc/compilers/common/cwchar.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/libc/compilers/common/cwchar.c b/components/libc/compilers/common/cwchar.c index c808083331..efa0a7ceb1 100644 --- a/components/libc/compilers/common/cwchar.c +++ b/components/libc/compilers/common/cwchar.c @@ -112,12 +112,12 @@ int wcwidth(wchar_t ucs) (ucs >= 0xf900 && ucs <= 0xfaff) || /* CJK Compatibility Ideographs */ (ucs >= 0xfe30 && ucs <= 0xfe6f) || /* CJK Compatibility Forms */ (ucs >= 0xff00 && ucs <= 0xff5f) || /* Fullwidth Forms */ - (ucs >= 0xffe0 && ucs <= 0xffe6) // || - //#ifndef _WIN32 - // (ucs >= 0x20000 && ucs <= 0x2ffff) - //#else - // 0 - //#endif + (ucs >= 0xffe0 && ucs <= 0xffe6) || + #ifndef _WIN32 + (ucs >= 0x20000 && ucs <= 0x2ffff) + #else + 0 + #endif )); }