]> granicus.if.org Git - icu/commitdiff
ICU-9332 Fix endianness detection for Linux s390
authorMichael Ow <mow@svn.icu-project.org>
Fri, 18 May 2012 16:05:05 +0000 (16:05 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 18 May 2012 16:05:05 +0000 (16:05 +0000)
X-SVN-Rev: 31834

icu4c/source/common/unicode/platform.h

index f9e61fda1a19b1da8922d69ebeefd1bf756557ea..bc88a95e6c7783effff40e6f8dc91add42d4624e 100644 (file)
 #   define U_IS_BIG_ENDIAN 1
 #elif defined(__LITTLE_ENDIAN__) || defined(_LITTLE_ENDIAN)
 #   define U_IS_BIG_ENDIAN 0
-#elif U_PLATFORM == U_PF_OS390 || U_PLATFORM == U_PF_OS400
+#elif U_PLATFORM == U_PF_OS390 || U_PLATFORM == U_PF_OS400 || defined(__s390__) || defined(__s390x__)
     /* These platforms do not appear to predefine any endianness macros. */
 #   define U_IS_BIG_ENDIAN 1
 #elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0)