support cputime clocks for processes/threads other than self
[oweals/musl.git] / src / ctype / wcwidth.c
index ab05cfec053d6bb6146efef15e3f7c660441a948..49c40eea8cabfc6f1a0a30aafda9625e85b82611 100644 (file)
@@ -1,14 +1,14 @@
-#include <wctype.h>
+#include <wchar.h>
 
-static unsigned char table[] = {
+static const unsigned char table[] = {
 #include "nonspacing.h"
 };
 
-static unsigned char wtable[] = {
+static const unsigned char wtable[] = {
 #include "wide.h"
 };
 
-int wcwidth(wint_t wc)
+int wcwidth(wchar_t wc)
 {
        if (wc < 0xffU)
                return (wc+1 & 0x7f) >= 0x21 ? 1 : wc ? -1 : 0;