From b6ff9d7d73e23c689a7c946984fc3b1e86f45821 Mon Sep 17 00:00:00 2001 From: warwick Date: Tue, 16 Sep 2003 00:20:18 +0000 Subject: [PATCH] Use __BIG_ENDIAN__ rather than __ppc__ (more portable, more meaningful). --- win/share/tile2bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/share/tile2bmp.c b/win/share/tile2bmp.c index 2ca2490b0..9b3dbafc5 100644 --- a/win/share/tile2bmp.c +++ b/win/share/tile2bmp.c @@ -50,7 +50,7 @@ extern char *FDECL(tilename, (int, int)); static short leshort(short x) { -#ifdef __ppc__ +#ifdef __BIG_ENDIAN__ return ((x&0xff)<<8)|((x>>8)&0xff); #else return x; @@ -60,7 +60,7 @@ static short leshort(short x) static long lelong(long x) { -#ifdef __ppc__ +#ifdef __BIG_ENDIAN__ return ((x&0xff)<<24)|((x&0xff00)<<8)|((x>>8)&0xff00)|((x>>24)&0xff); #else return x; -- 2.40.0