Skip to content

Commit

Permalink
Try to fix building on OSX (and I assume WIN32) following
Browse files Browse the repository at this point in the history
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
  • Loading branch information
imaclmaca committed Aug 24, 2014
1 parent 3b1e7f3 commit 22beee5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/xutf8/is_right2left.c
Expand Up @@ -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
Expand All @@ -36,7 +38,7 @@ XUtf8IsRightToLeft(unsigned int ucs) {
if (ucs >= 0x0591) return 1;
return 0;
}

/* ARABIC */
if (ucs <= 0x06ED) {
if (ucs >= 0x060C) return 1;
Expand All @@ -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;
Expand Down

0 comments on commit 22beee5

Please sign in to comment.