]> granicus.if.org Git - icu/commitdiff
ICU-9365 Fix endianness detection for sparc based systems
authorMichael Ow <mow@svn.icu-project.org>
Tue, 19 Jun 2012 18:01:28 +0000 (18:01 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Tue, 19 Jun 2012 18:01:28 +0000 (18:01 +0000)
X-SVN-Rev: 31971

icu4c/source/common/unicode/platform.h

index bc88a95e6c7783effff40e6f8dc91add42d4624e..c737a57570d743d04aee53bfb594bcf9fbbfc891 100644 (file)
 #elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0)
     /* HPPA do not appear to predefine any endianness macros. */
 #   define U_IS_BIG_ENDIAN 1
+#elif defined(sparc) || defined(__sparc) || defined(__sparc__)
+    /* Some sparc based systems (e.g. Linux) do not predefine any endianness macros. */
+#   define U_IS_BIG_ENDIAN 1
 #else
 #   define U_IS_BIG_ENDIAN 0
 #endif