Add more big endian platforms
This patch adds more platforms to the list that have the BIGENDIAN defines set.
Downstream users are using parts of SKIA on BigEndian machines.
R=cmp@chromium.org, bungeman@google.com, bsalomon@google.com, reed@google.com, sergeyberezin@chromium.org
Author: steve@ssinger.info
Review URL: https://codereview.chromium.org/218733002
git-svn-id: http://skia.googlecode.com/svn/trunk@14046 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/AUTHORS b/AUTHORS
index de3fa4d..1063746 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -20,5 +20,6 @@
Jacek Caban <cjacek@gmail.com>
NVIDIA <*@nvidia.com>
Samsung <*@samsung.com>
+Steve Singer <steve@ssinger.info>
The Chromium Authors <*@chromium.org>
Thiago Fransosi Farina <thiago.farina@gmail.com>
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index 73b5488..8be03bf 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -92,9 +92,15 @@
//////////////////////////////////////////////////////////////////////
#if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN)
- #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \
- || defined(__PPC64__)
- #define SK_CPU_BENDIAN
+ #if defined(__sparc) || defined(__sparc__) || \
+ defined(_POWER) || defined(__powerpc__) || \
+ defined(__ppc__) || defined(__hppa) || \
+ defined(__PPC__) || defined(__PPC64__) || \
+ defined(_MIPSEB) || defined(__ARMEB__) || \
+ defined(__s390__) || \
+ (defined(__sh__) && defined(__BIG_ENDIAN__)) || \
+ (defined(__ia64) && defined(__BIG_ENDIAN__))
+ #define SK_CPU_BENDIAN
#else
#define SK_CPU_LENDIAN
#endif