summaryrefslogtreecommitdiff
path: root/src/xutf8
diff options
context:
space:
mode:
Diffstat (limited to 'src/xutf8')
-rw-r--r--src/xutf8/is_right2left.c6
-rw-r--r--src/xutf8/lcUniConv/cp936ext.h10
-rw-r--r--src/xutf8/utf8Utils.c6
-rw-r--r--src/xutf8/utf8Wrap.c6
4 files changed, 27 insertions, 1 deletions
diff --git a/src/xutf8/is_right2left.c b/src/xutf8/is_right2left.c
index 69a612a48..19685ad5c 100644
--- a/src/xutf8/is_right2left.c
+++ b/src/xutf8/is_right2left.c
@@ -14,6 +14,12 @@
* http://www.fltk.org/str.php
*/
+#if defined(WIN32) || defined(__APPLE__)
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: utf8 functionality"
+#else
+#endif
+
/*
* This file is required on all platforms for utf8 support
*/
diff --git a/src/xutf8/lcUniConv/cp936ext.h b/src/xutf8/lcUniConv/cp936ext.h
index e41db3f5d..765a15a8b 100644
--- a/src/xutf8/lcUniConv/cp936ext.h
+++ b/src/xutf8/lcUniConv/cp936ext.h
@@ -16,7 +16,15 @@
* http://www.fltk.org/str.php
*/
-#if !defined(WIN32) && !defined(__APPLE__)
+#if defined(WIN32) || defined(__APPLE__)
+
+ // not needed
+
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: include the character encoding file below if needed"
+
+#else
#ifndef CP936
#ifdef NEED_TOWC
diff --git a/src/xutf8/utf8Utils.c b/src/xutf8/utf8Utils.c
index 54bbccf4c..17d49d34c 100644
--- a/src/xutf8/utf8Utils.c
+++ b/src/xutf8/utf8Utils.c
@@ -14,6 +14,12 @@
* http://www.fltk.org/str.php
*/
+#if defined(WIN32) || defined(__APPLE__)
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: utf8"
+#else
+#endif
+
/*
* Unicode to UTF-8 conversion functions.
*/
diff --git a/src/xutf8/utf8Wrap.c b/src/xutf8/utf8Wrap.c
index 7b52c0e5e..32619fe0a 100644
--- a/src/xutf8/utf8Wrap.c
+++ b/src/xutf8/utf8Wrap.c
@@ -14,6 +14,12 @@
* http://www.fltk.org/str.php
*/
+#if defined(WIN32) || defined(__APPLE__)
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: utf8"
+#else
+#endif
+
/*
* X11 UTF-8 text drawing functions.
*/