Blame SOURCES/webkitgtk-2.0.4-ppc64le.patch

207f88
diff -up webkitgtk-2.0.4/Source/WTF/wtf/dtoa/utils.h.ppc64le webkitgtk-2.0.4/Source/WTF/wtf/dtoa/utils.h
207f88
--- webkitgtk-2.0.4/Source/WTF/wtf/dtoa/utils.h.ppc64le	2014-08-04 08:22:39.684581409 +0200
207f88
+++ webkitgtk-2.0.4/Source/WTF/wtf/dtoa/utils.h	2014-08-04 08:23:53.860554944 +0200
207f88
@@ -49,7 +49,7 @@
207f88
 defined(__ARMEL__) || \
207f88
 defined(_MIPS_ARCH_MIPS32R2)
207f88
 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
207f88
-#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA)
207f88
+#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA)
207f88
 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
207f88
 #elif defined(_M_IX86) || defined(__i386__)
207f88
 #if defined(_WIN32)
207f88
diff -up webkitgtk-2.0.4/Source/WTF/wtf/Platform.h.ppc64le webkitgtk-2.0.4/Source/WTF/wtf/Platform.h
207f88
--- webkitgtk-2.0.4/Source/WTF/wtf/Platform.h.ppc64le	2014-08-04 08:20:54.031207167 +0200
207f88
+++ webkitgtk-2.0.4/Source/WTF/wtf/Platform.h	2014-08-04 08:22:21.683347265 +0200
207f88
@@ -95,24 +95,38 @@
207f88
 #endif /* MIPS */
207f88
 
207f88
 /* CPU(PPC) - PowerPC 32-bit */
207f88
-#if   defined(__ppc__)     \
207f88
+#if (  defined(__ppc__)     \
207f88
     || defined(__PPC__)     \
207f88
     || defined(__powerpc__) \
207f88
     || defined(__powerpc)   \
207f88
     || defined(__POWERPC__) \
207f88
     || defined(_M_PPC)      \
207f88
-    || defined(__PPC)
207f88
+    || defined(__PPC)) \
207f88
+    && defined(__BYTE_ORDER__) \
207f88
+    && (__BYTE_ORDER__==__ORDER_BIG_ENDIAN__)
207f88
 #define WTF_CPU_PPC 1
207f88
 #define WTF_CPU_BIG_ENDIAN 1
207f88
 #endif
207f88
 
207f88
-/* CPU(PPC64) - PowerPC 64-bit */
207f88
-#if   defined(__ppc64__) \
207f88
-    || defined(__PPC64__)
207f88
+/* CPU(PPC64) - PowerPC 64-bit Big Endian */
207f88
+#if (  defined(__ppc64__) \
207f88
+    || defined(__PPC64__)) \
207f88
+    && defined(__BYTE_ORDER__) \
207f88
+    && (__BYTE_ORDER__==__ORDER_BIG_ENDIAN__)
207f88
 #define WTF_CPU_PPC64 1
207f88
 #define WTF_CPU_BIG_ENDIAN 1
207f88
 #endif
207f88
 
207f88
+/* CPU(PPC64) - PowerPC 64-bit Little Endian */
207f88
+#if (   defined(__ppc64__) \
207f88
+    || defined(__PPC64__) \
207f88
+    || defined(__ppc64le__) \
207f88
+    || defined(__PPC64LE__)) \
207f88
+    && defined(__BYTE_ORDER__) \
207f88
+    && (__BYTE_ORDER__==__ORDER_LITTLE_ENDIAN__)
207f88
+#define WTF_CPU_PPC64LE 1
207f88
+#endif
207f88
+
207f88
 /* CPU(SH4) - SuperH SH-4 */
207f88
 #if defined(__SH4__)
207f88
 #define WTF_CPU_SH4 1
207f88
@@ -744,7 +758,8 @@
207f88
     || CPU(ALPHA) \
207f88
     || CPU(SPARC64) \
207f88
     || CPU(S390X) \
207f88
-    || CPU(PPC64)
207f88
+    || CPU(PPC64) \
207f88
+    || CPU(PPC64LE)
207f88
 #define WTF_USE_JSVALUE64 1
207f88
 #else
207f88
 #define WTF_USE_JSVALUE32_64 1