summaryrefslogtreecommitdiff
path: root/src/xutf8/mk_wcwidth.c
diff options
context:
space:
mode:
authorengelsman <engelsman>2010-04-18 18:38:13 +0000
committerengelsman <engelsman>2010-04-18 18:38:13 +0000
commita7a81061be488c34b75c02ee24c08973e2b11fb1 (patch)
treead6a1fae2476be50578cc17deb7b77383da8225a /src/xutf8/mk_wcwidth.c
parent4f928ef3d6d3fd2aa174e81fc033589e54d39a7b (diff)
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 <wchar.h> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/xutf8/mk_wcwidth.c')
-rw-r--r--src/xutf8/mk_wcwidth.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xutf8/mk_wcwidth.c b/src/xutf8/mk_wcwidth.c
index 61e822ad6..c0bebaecc 100644
--- a/src/xutf8/mk_wcwidth.c
+++ b/src/xutf8/mk_wcwidth.c
@@ -1,4 +1,10 @@
/*
+ * Important!
+ * This file should remain as close to Markus Kuhn's original source
+ * as possible for easy checking for changes later, however unlikely.
+ * All customisations to work with FLTK shall be annotated!
+ */
+/*
* This is an implementation of wcwidth() and wcswidth() (defined in
* IEEE Std 1002.1-2001) for Unicode.
*
@@ -59,7 +65,14 @@
* Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
*/
+/*
+ * FLTK - avoid possible problems on systems with 32-bit wchar_t.
+ * In the first instance, wchar_t is superceded in calling file
+ * to avoid any unnecessary changes in this one.
+ */
+#if 0
#include <wchar.h>
+#endif
struct interval {
int first;