lcms2/define-ppc64le-endian.patch
2014-05-21 09:33:11 -05:00

15 lines
730 B
Diff

diff -Naur lcms2-2.6.orig/include/lcms2.h lcms2-2.6/include/lcms2.h
--- lcms2-2.6.orig/include/lcms2.h 2014-03-27 09:56:56.880010248 -0500
+++ lcms2-2.6/include/lcms2.h 2014-03-27 13:08:25.020010825 -0500
@@ -192,8 +192,8 @@
#if defined(__powerpc__) || defined(__ppc__) || defined(TARGET_CPU_PPC)
# define CMS_USE_BIG_ENDIAN 1
-# if defined (__GNUC__) && defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN)
-# if __BYTE_ORDER == __LITTLE_ENDIAN
+# 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