1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
18 // Endianess handling, swapping 16bit and 32bit.
20 //-----------------------------------------------------------------------------
32 // Endianess handling.
33 // WAD files are stored little endian.
35 unsigned short SwapSHORT(unsigned short);
36 unsigned long SwapLONG(unsigned long);
37 #define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
38 #define LONG(x) ((long)SwapLONG((unsigned long) (x)))
48 //-----------------------------------------------------------------------------
52 //-----------------------------------------------------------------------------