summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.8.1
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-31 13:35:42 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-31 13:35:42 +0000
commit261f84357cc7bd6f87dba0694cf250ea00b5b513 (patch)
treeb6272406fe53655e8b2c52cc96d4fe11f1bc4047 /Build/source/libs/icu/icu-4.8.1
parent0fb02de850dc4adf2178361faf05d7e22dc3e993 (diff)
ICU endian problem, ICU Ticket #8657, comment 11
git-svn-id: svn://tug.org/texlive/trunk@23760 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.8.1')
-rw-r--r--Build/source/libs/icu/icu-4.8.1/layout/LESwaps.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/libs/icu/icu-4.8.1/layout/LESwaps.h b/Build/source/libs/icu/icu-4.8.1/layout/LESwaps.h
index 37fd6694bbe..b9b133f4f72 100644
--- a/Build/source/libs/icu/icu-4.8.1/layout/LESwaps.h
+++ b/Build/source/libs/icu/icu-4.8.1/layout/LESwaps.h
@@ -56,7 +56,9 @@ public:
*/
static le_uint16 swapWord(le_uint16 value)
{
-#if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
+#if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || \
+ (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || \
+ defined(__BIG_ENDIAN__)
// Fastpath when we know that the platform is big-endian.
return value;
#else
@@ -78,7 +80,9 @@ public:
*/
static le_uint32 swapLong(le_uint32 value)
{
-#if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
+#if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || \
+ (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || \
+ defined(__BIG_ENDIAN__)
// Fastpath when we know that the platform is big-endian.
return value;
#else