- Replaced the use of autoconf's WORDS_BIGENDIAN with __BIG_ENDIAN__, since

latter comes predefined by GCC.


SVN r1779 (trunk)
This commit is contained in:
Randy Heit 2009-08-31 21:47:29 +00:00
commit 3f003e06db
15 changed files with 22 additions and 28 deletions

View file

@ -125,11 +125,9 @@ FTexture * PCXTexture_TryCreate(FileReader & file, int lumpnum)
return NULL;
}
#ifdef WORDS_BIGENDIAN
hdr.xmin = LittleShort(hdr.xmin);
hdr.xmax = LittleShort(hdr.xmax);
hdr.bytesPerScanLine = LittleShort(hdr.bytesPerScanLine);
#endif
if (hdr.manufacturer != 10 || hdr.encoding != 1) return NULL;
if (hdr.version != 0 && hdr.version != 2 && hdr.version != 3 && hdr.version != 4 && hdr.version != 5) return NULL;