summaryrefslogtreecommitdiff
path: root/src/m_swap.h
diff options
context:
space:
mode:
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
//