From aced0d7e4960495a06b654064596c79fb95d426d Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 19 Jun 2012 18:01:28 +0000 Subject: [PATCH] ICU-9365 Fix endianness detection for sparc based systems X-SVN-Rev: 31971 --- icu4c/source/common/unicode/platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icu4c/source/common/unicode/platform.h b/icu4c/source/common/unicode/platform.h index bc88a95e6c7..c737a57570d 100644 --- a/icu4c/source/common/unicode/platform.h +++ b/icu4c/source/common/unicode/platform.h @@ -352,6 +352,9 @@ #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 -- 2.40.0