summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-11-18 18:29:40 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-11-18 18:37:46 (GMT)
commit9fe840c54e373c26fd54bb04eadb25e14ad4040b (patch)
tree23d7382bd6f255c3d41814e77147f0f412782336 /src
parent5f1c10a15374e84e96e9e69e47f511acd3a71c4f (diff)
downloadQt-9fe840c54e373c26fd54bb04eadb25e14ad4040b.zip
Qt-9fe840c54e373c26fd54bb04eadb25e14ad4040b.tar.gz
Qt-9fe840c54e373c26fd54bb04eadb25e14ad4040b.tar.bz2
Fix JavaScriptCore on 32-bit Sparc: these machines are big-endian
Reviewed-By: Jocelyn Turcotte
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
index 188b68f..be74e2a 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -328,6 +328,16 @@
#define WTF_PLATFORM_BIG_ENDIAN 1
#endif
+/* PLATFORM(SPARC32) */
+#if defined(__sparc) && !defined(__arch64__) || defined(__sparcv8)
+#define WTF_PLATFORM_SPARC32 1
+#define WTF_PLATFORM_BIG_ENDIAN 1
+#endif
+
+#if PLATFORM(SPARC32) || PLATFORM(SPARC64)
+#define WTF_PLATFORM_SPARC
+#endif
+
/* PLATFORM(HPPA) */
/* a.k.a. PA-RISC */
#if defined(__hppa) || defined(__hppa__)