blob: e68979f9362095dfb98d552d958e5dc84e66b6e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- include/lcms.h.orig Sat Nov 26 17:23:47 2005
+++ include/lcms.h Mon Aug 7 21:28:13 2006
@@ -47,7 +47,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)
@@ -134,7 +140,7 @@
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
# include <sys/types.h>
# define USE_INT64 1
-# define LCMSSLONGLONG int_64_t
+# define LCMSSLONGLONG int64_t
# define LCMSULONGLONG u_int64_t
#endif
|