Blob Blame History Raw
--- lcms2-2.5/include/lcms2.h.orig	2013-06-27 09:01:28.000000000 -0700
+++ lcms2-2.5/include/lcms2.h	2014-06-18 15:11:30.930007289 -0700
@@ -185,6 +185,13 @@
 #   define CMS_USE_BIG_ENDIAN   1
 #endif
 
+#if defined (__GNUC__) && defined(__BYTE_ORDER__) && defined(__LITTLE_ENDIAN__)
+#   if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+// Don't use big endian for PowerPC little endian mode
+#     undef CMS_USE_BIG_ENDIAN
+#   endif
+#endif
+
 #ifdef TARGET_CPU_PPC
 # if TARGET_CPU_PPC
 #   define CMS_USE_BIG_ENDIAN   1