summaryrefslogtreecommitdiff
path: root/graphics/lcms/files/patch-config
blob: 85e60a1d4ddb8bc1dbd5b86f1331a23734a3858d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ../include/lcms.h	Wed Aug  7 15:34:37 2002
+++ ../include/lcms.h	Wed Nov  6 01:23:21 2002
@@ -66,5 +73,11 @@
 // Uncomment this one if you are using big endian machines (only meaningful
 // when NON_WINDOWS is used)
-// #define USE_BIG_ENDIAN   1
+
+#include <machine/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