Index: ghostscript-9.10/lcms/include/lcms.h =================================================================== --- ghostscript-9.10.orig/lcms/include/lcms.h +++ ghostscript-9.10/lcms/include/lcms.h @@ -140,11 +140,15 @@ typedef pthread_rwlock_t LCMS_RW #endif #if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) || defined(__s390__) || defined(__s390x__) +# ifndef __LITTLE_ENDIAN__ # define USE_BIG_ENDIAN 1 +# endif #endif #if TARGET_CPU_PPC +# ifndef __LITTLE_ENDIAN__ # define USE_BIG_ENDIAN 1 +# endif #endif #if macintosh Index: ghostscript-9.10/lcms2/include/lcms2.h =================================================================== --- ghostscript-9.10.orig/lcms2/include/lcms2.h +++ ghostscript-9.10/lcms2/include/lcms2.h @@ -178,17 +178,23 @@ typedef int cmsBool; #endif #if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) +# ifndef __LITTLE_ENDIAN__ # define CMS_USE_BIG_ENDIAN 1 +# endif #endif #if defined(__ppc__) || defined(__s390__) || defined(__s390x__) +# ifndef __LITTLE_ENDIAN__ # define CMS_USE_BIG_ENDIAN 1 +# endif #endif #ifdef TARGET_CPU_PPC # if TARGET_CPU_PPC +# ifndef __LITTLE_ENDIAN__ # define CMS_USE_BIG_ENDIAN 1 # endif +# endif #endif #ifdef macintosh