summaryrefslogtreecommitdiff
path: root/src/ctype/wcwidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/wcwidth.c')
-rw-r--r--src/ctype/wcwidth.c4
1 files changed, 2 insertions, 2 deletions
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 <wctype.h>
+#include <wchar.h>
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;