summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xutf8/is_right2left.c10
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;