]> granicus.if.org Git - nethack/commitdiff
Use __BIG_ENDIAN__ rather than __ppc__ (more portable, more meaningful).
authorwarwick <warwick>
Tue, 16 Sep 2003 00:20:18 +0000 (00:20 +0000)
committerwarwick <warwick>
Tue, 16 Sep 2003 00:20:18 +0000 (00:20 +0000)
win/share/tile2bmp.c

index 2ca2490b059d72843277c4f758eb4a96b040d6c5..9b3dbafc56f4e0ea85972631f3b2b3e066876219 100644 (file)
@@ -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;