From 6ef5c2e7071eb56e0844ff8beaa32131259fa078 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Wed, 6 Nov 2002 12:44:10 +0000 Subject: 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) --- graphics/lcms/files/patch-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/lcms') 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 -+#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 -- cgit v1.2.3