aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2002-11-06 20:44:10 +0800
committermi <mi@FreeBSD.org>2002-11-06 20:44:10 +0800
commitbdab2efbabff673bbd1f71545fcb40036c2a6e38 (patch)
treec341004acde951e03a9efd9e752f1f8d791a7d3a /graphics
parenteaf253f7a73f3ebef8af20f9248f24e7a06af763 (diff)
downloadfreebsd-ports-gnome-bdab2efbabff673bbd1f71545fcb40036c2a6e38.tar.gz
freebsd-ports-gnome-bdab2efbabff673bbd1f71545fcb40036c2a6e38.tar.zst
freebsd-ports-gnome-bdab2efbabff673bbd1f71545fcb40036c2a6e38.zip
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)
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