ports/graphics/lcms/files/patch-config
Kirill Ponomarev 56f284e728 - Update to version 1.12
PR:		ports/67083
Submitted by:	Ports Fury
2004-05-23 19:08:26 +00:00

17 lines
582 B
Text

--- include/lcms.h.orig Sun Dec 21 00:00:11 2003
+++ include/lcms.h Sun May 23 12:14:22 2004
@@ -52,7 +52,13 @@
// Uncomment this one if you are using big endian machines (only meaningful
// when NON_WINDOWS is used)
-// #define USE_BIG_ENDIAN 1
+
+#include <sys/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+# define USE_BIG_ENDIAN 1
+#elif BYTE_ORDER != LITTLE_ENDIAN
+# error "Unexpected BYTE_ORDER on this architecture"
+#endif
// Uncomment this one if your compiler/machine does support the
// "long long" type This will speedup fixed point math. (USE_C only)