From 22beee52afd4e06e0f7fa2e19ce86e132b75730b Mon Sep 17 00:00:00 2001 From: Ian MacArthur Date: Sun, 24 Aug 2014 21:23:34 +0000 Subject: Try to fix building on OSX (and I assume WIN32) following some changes introduced in r10248 that were causing issues with including X11.h on non-X11 platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/xutf8/is_right2left.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xutf8/is_right2left.c b/src/xutf8/is_right2left.c index 169174424..69a612a48 100644 --- a/src/xutf8/is_right2left.c +++ b/src/xutf8/is_right2left.c @@ -18,9 +18,11 @@ * This file is required on all platforms for utf8 support */ -#include "../Xutf8.h" +#if !defined(WIN32) && !defined(__APPLE__) +# include "../Xutf8.h" +#endif /* !defined(WIN32) && !defined(__APPLE__) */ -unsigned short +unsigned short XUtf8IsRightToLeft(unsigned int ucs) { #if 0 @@ -36,7 +38,7 @@ XUtf8IsRightToLeft(unsigned int ucs) { if (ucs >= 0x0591) return 1; return 0; } - + /* ARABIC */ if (ucs <= 0x06ED) { if (ucs >= 0x060C) return 1; @@ -58,7 +60,7 @@ XUtf8IsRightToLeft(unsigned int ucs) { if (ucs >= 0xFB1E) return 1; return 0; } - + if (ucs <= 0xFDFB) { if (ucs >= 0xFB50) return 1; return 0; -- cgit v1.2.3