diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2014-08-24 21:23:34 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2014-08-24 21:23:34 +0000 |
| commit | 22beee52afd4e06e0f7fa2e19ce86e132b75730b (patch) | |
| tree | d64723f2f8a9726e4939d386538eee0624cf69bd /src | |
| parent | 3b1e7f31b9f89b793e73f6408cdd8fc178bcf2e3 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/xutf8/is_right2left.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; |
