summaryrefslogtreecommitdiff
path: root/src/m_swap.h
diff options
context:
space:
mode:
authorSimon Howard2006-01-24 01:46:08 +0000
committerSimon Howard2006-01-24 01:46:08 +0000
commitc3319d6d6ec40465f2ec1427adcac8096116b11a (patch)
tree50c2a8200612c4a197594f1a33ece3a417a7d53c /src/m_swap.h
parenta0d6ed0b4ce28aa06eefc9ad9dab27582b29344a (diff)
downloadchocolate-doom-c3319d6d6ec40465f2ec1427adcac8096116b11a.tar.gz
chocolate-doom-c3319d6d6ec40465f2ec1427adcac8096116b11a.tar.bz2
chocolate-doom-c3319d6d6ec40465f2ec1427adcac8096116b11a.zip
More endianness fixes
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 342
Diffstat (limited to 'src/m_swap.h')
-rw-r--r--src/m_swap.h9
1 files changed, 6 insertions, 3 deletions
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
//