$NetBSD: patch-af,v 1.3 2004/07/09 12:45:03 wiz Exp $ --- cpu.h.orig 1994-06-22 16:24:50.000000000 +0200 +++ cpu.h @@ -113,13 +113,13 @@ format and back again. Obviously there is nothing to do for little-endian machines... */ -#if defined(LITTLE_ENDIAN) +#if BYTE_ORDER == LITTLE_ENDIAN # define ChangeE(x) (WORD)(x) #else # define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8))) #endif -#if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS) +#if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS) # define ReadWord(x) (*(x)) # define WriteWord(x,y) (*(x) = (y)) # define CopyWord(x,y) (*x = *y)