From acf6c881d36b675d755433d3cf48613bc46ed78d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 3 Jan 2016 22:54:29 +0000 Subject: 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 --- src/xutf8/is_right2left.c | 6 ++++++ src/xutf8/lcUniConv/cp936ext.h | 10 +++++++++- src/xutf8/utf8Utils.c | 6 ++++++ src/xutf8/utf8Wrap.c | 6 ++++++ 4 files changed, 27 insertions(+), 1 deletion(-) (limited to 'src/xutf8') 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. */ -- cgit v1.2.3