From c3319d6d6ec40465f2ec1427adcac8096116b11a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 24 Jan 2006 01:46:08 +0000 Subject: More endianness fixes Subversion-branch: /trunk/chocolate-doom Subversion-revision: 342 --- src/m_swap.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/m_swap.h') diff --git a/src/m_swap.h b/src/m_swap.h index 87bef799..e0887038 100644 --- a/src/m_swap.h +++ b/src/m_swap.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: m_swap.h 340 2006-01-23 21:56:18Z fraggle $ +// $Id: m_swap.h 342 2006-01-24 01:46:08Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -38,9 +38,9 @@ // WAD files are stored little endian. #ifdef WORDS_BIGENDIAN short SwapSHORT(short); -long SwapLONG(long); +int SwapLONG(int); #define SHORT(x) ((short)SwapSHORT((unsigned short) (x))) -#define LONG(x) ((long)SwapLONG((unsigned long) (x))) +#define LONG(x) ((int)SwapLONG((unsigned int) (x))) #else #define SHORT(x) (x) #define LONG(x) (x) @@ -53,6 +53,9 @@ long SwapLONG(long); //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.7 2006/01/24 01:46:08 fraggle +// More endianness fixes +// // Revision 1.6 2006/01/23 21:56:18 fraggle // Include the config header so that endianness is dealt with correctly // -- cgit v1.2.3