liblcms/liblcms-1.17-fix_s390_lcms_h.patch

23 lines
569 B
Diff

--- lcms-1.17/include/lcms.h.s390
+++ lcms-1.17/include/lcms.h
@@ -139,7 +139,8 @@
# define USE_BIG_ENDIAN 1
#endif
-#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__)
+#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) \
+ || defined(__s390__) || defined(__s390x__)
# define USE_BIG_ENDIAN 1
#endif
@@ -153,7 +154,7 @@
# endif
#endif
-#if __BIG_ENDIAN__
+#ifdef __BIG_ENDIAN__
# define USE_BIG_ENDIAN 1
#endif