summaryrefslogtreecommitdiff
path: root/src/xutf8/fl_wcwidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xutf8/fl_wcwidth.c')
-rw-r--r--src/xutf8/fl_wcwidth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xutf8/fl_wcwidth.c b/src/xutf8/fl_wcwidth.c
index 5e03caddb..005ade003 100644
--- a/src/xutf8/fl_wcwidth.c
+++ b/src/xutf8/fl_wcwidth.c
@@ -30,7 +30,9 @@
* forward declare the routines as static to avoid name leakage.
*/
-#include <wchar.h>
+#include <stdio.h> /* for size_t only */
+typedef unsigned int wchar_t; /* supercede system wchar_t */
+
static int mk_wcwidth(wchar_t ucs);
static int mk_wcswidth(const wchar_t *pwcs, size_t n);
static int mk_wcwidth_cjk(wchar_t ucs);