X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fctype%2Fwcwidth.c;h=98f128e9e01abaf1be5aa8d054ed9debf7cb3bdd;hp=ab05cfec053d6bb6146efef15e3f7c660441a948;hb=9a3bbce447403d735282586786dc436ec1ffbad4;hpb=1b0ce9af6d2aa7b92edaf3e9c631cb635bae22bd diff --git a/src/ctype/wcwidth.c b/src/ctype/wcwidth.c index ab05cfec..98f128e9 100644 --- a/src/ctype/wcwidth.c +++ b/src/ctype/wcwidth.c @@ -1,4 +1,4 @@ -#include +#include static unsigned char table[] = { #include "nonspacing.h" @@ -8,7 +8,7 @@ static 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;