From d349f6920a4d97632d0216fbd0d48de50498eb4b Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sun, 10 Jul 2005 19:17:09 +0000 Subject: some more big endian fixes --- common/arch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/arch.h b/common/arch.h index 4c1f0807..f7d7c335 100644 --- a/common/arch.h +++ b/common/arch.h @@ -22,7 +22,9 @@ #define ARCH_H /* check endianess */ -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if defined(__sparc__) +#define B_ENDIAN +#elif __BYTE_ORDER == __LITTLE_ENDIAN #define L_ENDIAN #elif __BYTE_ORDER == __BIG_ENDIAN #define B_ENDIAN -- cgit v1.2.1