- 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:
parent
75920f2ed0
commit
3f003e06db
15 changed files with 22 additions and 28 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue