summaryrefslogtreecommitdiff
path: root/FL/fl_utf8.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-03 22:54:29 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-03 22:54:29 +0000
commitacf6c881d36b675d755433d3cf48613bc46ed78d (patch)
tree13cebc8f8fd918767595da12fafb5a600db2feb3 /FL/fl_utf8.h
parent933b00b9c9fe55d01a7f1c4831f171482806f85b (diff)
Updated platform specific #if's to report unimplemented code when compiling with FL_PORTING defined and WIN32 and __APPLE__ undefined>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/fl_utf8.h')
-rw-r--r--FL/fl_utf8.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/FL/fl_utf8.h b/FL/fl_utf8.h
index 7ac79e1f5..b19f2a962 100644
--- a/FL/fl_utf8.h
+++ b/FL/fl_utf8.h
@@ -57,6 +57,9 @@
# include <wchar.h>
# include <sys/stat.h>
# define xchar wchar_t
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: include utf8 support files and define utf8 types"
+# define xchar unsigned short
#else /* X11 */
# include <sys/types.h>
# include <sys/stat.h>
@@ -158,6 +161,12 @@ FL_EXPORT char *fl_utf8_to_locale(const char *s, int len, unsigned int codepage)
/* OD: Attempt to convert a string in the current locale to UTF-8 */
FL_EXPORT char *fl_locale_to_utf8(const char *s, int len, unsigned int codepage);
+#elif defined(__APPLE__)
+ // not needed
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: do you want to be able to convert from a local charset to utf8?"
+#else // X11
+ // not needed
#endif
/*****************************************************************************