From a7a81061be488c34b75c02ee24c08973e2b11fb1 Mon Sep 17 00:00:00 2001 From: engelsman Date: Sun, 18 Apr 2010 18:38:13 +0000 Subject: tweaked fl_wcwidth.c and mk_wcwidth.c to supercede system wchar_t fl_wcwidth.c has a typedef unsigned int wchar_t; and mk_wcwidth.c has an #if 0 to stop #include git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/xutf8/fl_wcwidth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/xutf8/fl_wcwidth.c') 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 +#include /* 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); -- cgit v1.2.3