$NetBSD: patch-az,v 1.1 2000/02/03 16:01:16 abs Exp $ --- sndserv/wadread.c.orig Thu Jan 30 19:54:23 1997 +++ sndserv/wadread.c Thu Feb 3 01:34:06 2000 @@ -94,12 +94,7 @@ // Something new. // This version of w_wad.c does handle endianess. // -#ifndef __BIG_ENDIAN__ - -#define LONG(x) (x) -#define SHORT(x) (x) - -#else +#if defined(__BIG_ENDIAN__) || (BYTE_ORDER == BIG_ENDIAN) #define LONG(x) ((long)SwapLONG((unsigned long) (x))) #define SHORT(x) ((short)SwapSHORT((unsigned short) (x))) @@ -118,6 +113,11 @@ return (x>>8) | (x<<8); } + +#else + +#define LONG(x) (x) +#define SHORT(x) (x) #endif