summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2002-11-06 12:44:10 +0000
committerMikhail Teterin <mi@FreeBSD.org>2002-11-06 12:44:10 +0000
commit6ef5c2e7071eb56e0844ff8beaa32131259fa078 (patch)
tree0154afba314c5e1e95d3a91d3be7c7018bccd206 /graphics
parentUpdate to 20021106. (diff)
Use BYTE_ORDER, BIG_ and LITTLE_ENDIAN instead of their
underscore-prefixed aliases, which are not available on -stable. There I was proud of myself for testing on i386, alpha, and panther, and still missing a -stable incompatibility :-\ Submitted by: Voodai, Lars Erik Gullerud, Ivajlo Nikolov (so far)
Notes
Notes: svn path=/head/; revision=69577
Diffstat (limited to 'graphics')
-rw-r--r--graphics/lcms/files/patch-config4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/lcms/files/patch-config b/graphics/lcms/files/patch-config
index ee9c19a404cf..85e60a1d4ddb 100644
--- a/graphics/lcms/files/patch-config
+++ b/graphics/lcms/files/patch-config
@@ -6,9 +6,9 @@
-// #define USE_BIG_ENDIAN 1
+
+#include <machine/endian.h>
-+#if _BYTE_ORDER == _BIG_ENDIAN
++#if BYTE_ORDER == BIG_ENDIAN
+# define USE_BIG_ENDIAN 1
-+#elif _BYTE_ORDER != _LITTLE_ENDIAN
++#elif BYTE_ORDER != LITTLE_ENDIAN
+# error "Unexpected BYTE_ORDER on this architecture"
+#endif