summaryrefslogtreecommitdiff
path: root/src/xutf8/fl_wcwidth.c
diff options
context:
space:
mode:
authorengelsman <engelsman>2010-04-19 21:15:30 +0000
committerengelsman <engelsman>2010-04-19 21:15:30 +0000
commitd50ca53788aa062b84fa7fddeb691d735eeb3d3b (patch)
tree247655477bb74e1bf492b958cb1ea6b595ec5b5e /src/xutf8/fl_wcwidth.c
parenta7a81061be488c34b75c02ee24c08973e2b11fb1 (diff)
tweaked fl_wcwidth.c and mk_wcwidth.c to remove system wchar_t
commented out, or replaced, wchar_t with unsigned int. commented out unused functions from mk_wcwidth.c. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/xutf8/fl_wcwidth.c')
-rw-r--r--src/xutf8/fl_wcwidth.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xutf8/fl_wcwidth.c b/src/xutf8/fl_wcwidth.c
index 005ade003..6adeb924e 100644
--- a/src/xutf8/fl_wcwidth.c
+++ b/src/xutf8/fl_wcwidth.c
@@ -30,13 +30,16 @@
* forward declare the routines as static to avoid name leakage.
*/
+#if 0
#include <stdio.h> /* for size_t only */
-typedef unsigned int wchar_t; /* supercede system wchar_t */
+#endif
-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);
-static int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n);
+static int mk_wcwidth(unsigned int ucs);
+#if 0
+static int mk_wcswidth(const unsigned int *pwcs, size_t n);
+static int mk_wcwidth_cjk(unsigned int ucs);
+static int mk_wcswidth_cjk(const unsigned int *pwcs, size_t n);
+#endif
#include "mk_wcwidth.c"