summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/cwchar.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2024-12-23 17:43:22 -0500
committerRbb666 <[email protected]>2024-12-24 13:42:04 +0800
commita992226863d5319c04f2e972a7cc28cdf3fa07db (patch)
treecbfbb9d2a36ce06c8a52bd936c1b45cdba716f9b /components/libc/compilers/common/cwchar.c
parentb23d667ba406cc3daade69f22e32d332261767bc (diff)
[libc] uncomment wcwidth for win32
Diffstat (limited to 'components/libc/compilers/common/cwchar.c')
-rw-r--r--components/libc/compilers/common/cwchar.c12
1 files 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
));
}