From 9f994d9c980cf5fb64246b2cc1572e043dff6752 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 2 Mar 2006 01:01:05 +0000 Subject: Add unsigned qualifiers on swapping functions, to stop problems on MacOS X. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 406 --- src/m_swap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/m_swap.h b/src/m_swap.h index e0887038..86bd5d5c 100644 --- a/src/m_swap.h +++ b/src/m_swap.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: m_swap.h 342 2006-01-24 01:46:08Z fraggle $ +// $Id: m_swap.h 406 2006-03-02 01:01:05Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -37,8 +37,8 @@ // Endianess handling. // WAD files are stored little endian. #ifdef WORDS_BIGENDIAN -short SwapSHORT(short); -int SwapLONG(int); +extern unsigned short SwapSHORT(unsigned short); +extern unsigned int SwapLONG(unsigned int); #define SHORT(x) ((short)SwapSHORT((unsigned short) (x))) #define LONG(x) ((int)SwapLONG((unsigned int) (x))) #else -- cgit v1.2.3