Browse Source

[libc] uncomment wcwidth for win32

Meco Man 7 months ago
parent
commit
a992226863
1 changed files with 6 additions and 6 deletions
  1. 6 6
      components/libc/compilers/common/cwchar.c

+ 6 - 6
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
         ));
 }