summaryrefslogtreecommitdiff
path: root/src/xutf8
diff options
context:
space:
mode:
Diffstat (limited to 'src/xutf8')
-rw-r--r--src/xutf8/case.c4
-rw-r--r--src/xutf8/is_right2left.c2
-rw-r--r--src/xutf8/is_spacing.c4
-rw-r--r--src/xutf8/keysym2Ucs.c2
-rw-r--r--src/xutf8/lcUniConv/cp936ext.h8
-rw-r--r--src/xutf8/utf8Input.c2
-rw-r--r--src/xutf8/utf8Utils.c2
-rw-r--r--src/xutf8/utf8Wrap.c10
8 files changed, 21 insertions, 13 deletions
diff --git a/src/xutf8/case.c b/src/xutf8/case.c
index f55d08e36..8efc0e397 100644
--- a/src/xutf8/case.c
+++ b/src/xutf8/case.c
@@ -19,6 +19,10 @@
* This file is required on all platforms for UTF-8 support
*/
+#if !defined(WIN32) && !defined(__APPLE__)
+# include "../Xutf8.h"
+#endif /* !defined(WIN32) && !defined(__APPLE__) */
+
#include "headers/case.h"
#include <stdlib.h>
diff --git a/src/xutf8/is_right2left.c b/src/xutf8/is_right2left.c
index d44f05937..e79a55f25 100644
--- a/src/xutf8/is_right2left.c
+++ b/src/xutf8/is_right2left.c
@@ -14,7 +14,7 @@
* http://www.fltk.org/str.php
*/
-#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform unicode
+#if defined(WIN32) || defined(__APPLE__) /* PORTME: Fl_Screen_Driver - platform unicode */
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: utf8 functionality"
#else
diff --git a/src/xutf8/is_spacing.c b/src/xutf8/is_spacing.c
index c97222420..6e3d6abd3 100644
--- a/src/xutf8/is_spacing.c
+++ b/src/xutf8/is_spacing.c
@@ -18,6 +18,10 @@
* This file is required on all platforms for utf8 support
*/
+#if !defined(WIN32) && !defined(__APPLE__)
+# include "../Xutf8.h"
+#endif /* !defined(WIN32) && !defined(__APPLE__) */
+
#include "headers/spacing.h"
unsigned short
diff --git a/src/xutf8/keysym2Ucs.c b/src/xutf8/keysym2Ucs.c
index b83b5ef8f..b811d4054 100644
--- a/src/xutf8/keysym2Ucs.c
+++ b/src/xutf8/keysym2Ucs.c
@@ -17,7 +17,7 @@
#define KEYSYM2UCS_INCLUDED
#if defined(WIN32)
-#elif defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform unicode
+#elif defined(__APPLE__) /* PORTME: Fl_Screen_Driver - platform unicode */
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: do you want to include Xutf8.h?"
#else
diff --git a/src/xutf8/lcUniConv/cp936ext.h b/src/xutf8/lcUniConv/cp936ext.h
index 8d0207ff8..64bd0fc97 100644
--- a/src/xutf8/lcUniConv/cp936ext.h
+++ b/src/xutf8/lcUniConv/cp936ext.h
@@ -3,7 +3,7 @@
*
* Character encoding support for the Fast Light Tool Kit (FLTK).
*
- * Copyright 1998-2010 by Bill Spitzak and others.
+ * Copyright 1998-2016 by Bill Spitzak and others.
*
* This library is free software. Distribution and use rights are outlined in
* the file "COPYING" which should have been included with this file. If this
@@ -16,9 +16,9 @@
* http://www.fltk.org/str.php
*/
-#if defined(WIN32) || defined(__APPLE__) // PORTME: is this really needed? It's huge!
+#if defined(WIN32) || defined(__APPLE__) /* PORTME: is this really needed? It's huge! */
- // not needed
+ /* not needed */
#elif defined(FL_PORTING)
@@ -6251,7 +6251,7 @@ cp936ext_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
#endif /* CP936 */
-#endif /* __APPLE__ WIN32 */ // PORTME: Unicode stuff
+#endif /* __APPLE__ WIN32 */ /* PORTME: Unicode stuff */
/*
* End of "$Id$".
diff --git a/src/xutf8/utf8Input.c b/src/xutf8/utf8Input.c
index 2eef627aa..bba400271 100644
--- a/src/xutf8/utf8Input.c
+++ b/src/xutf8/utf8Input.c
@@ -15,7 +15,7 @@
*/
#if defined(WIN32)
-#elif defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform unicode
+#elif defined(__APPLE__) /* PORTME: Fl_Screen_Driver - platform unicode */
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: do you want to include Xutf8.h?"
#else
diff --git a/src/xutf8/utf8Utils.c b/src/xutf8/utf8Utils.c
index 0af7bf48c..41343f459 100644
--- a/src/xutf8/utf8Utils.c
+++ b/src/xutf8/utf8Utils.c
@@ -14,7 +14,7 @@
* http://www.fltk.org/str.php
*/
-#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform unicode
+#if defined(WIN32) || defined(__APPLE__) /* PORTME: Fl_Screen_Driver - platform unicode */
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: utf8"
#else
diff --git a/src/xutf8/utf8Wrap.c b/src/xutf8/utf8Wrap.c
index cbff3ecb4..27e048cfe 100644
--- a/src/xutf8/utf8Wrap.c
+++ b/src/xutf8/utf8Wrap.c
@@ -14,7 +14,7 @@
* http://www.fltk.org/str.php
*/
-#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform unicode
+#if defined(WIN32) || defined(__APPLE__) /* PORTME: Fl_Screen_Driver - platform unicode */
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: utf8"
#else
@@ -389,7 +389,7 @@ XUtf8DrawRtlString(Display *display,
ptr = buf + 128;
}
- ulen = XFastConvertUtf8ToUcs((unsigned char*)string, num_bytes, &ucs);
+ ulen = XFastConvertUtf8ToUcs((const unsigned char*)string, num_bytes, &ucs);
if (ulen < 1) ulen = 1;
@@ -506,7 +506,7 @@ XUtf8DrawString(Display *display,
i = 0;
}
- ulen = XFastConvertUtf8ToUcs((unsigned char*)string, num_bytes, &ucs);
+ ulen = XFastConvertUtf8ToUcs((const unsigned char*)string, num_bytes, &ucs);
if (ulen < 1) ulen = 1;
@@ -639,7 +639,7 @@ XUtf8_measure_extents(
i = 0;
}
- ulen = XFastConvertUtf8ToUcs((unsigned char*)string, num_bytes, &ucs);
+ ulen = XFastConvertUtf8ToUcs((const unsigned char*)string, num_bytes, &ucs);
if (ulen < 1) ulen = 1;
@@ -762,7 +762,7 @@ XUtf8TextWidth(XUtf8FontStruct *font_set,
i = 0;
}
- ulen = XFastConvertUtf8ToUcs((unsigned char*)string, num_bytes, &ucs);
+ ulen = XFastConvertUtf8ToUcs((const unsigned char*)string, num_bytes, &ucs);
if (ulen < 1) ulen = 1;