summaryrefslogtreecommitdiff
path: root/games/xdoom/patches/patch-ap
blob: f1cc9fb0906120486122edbccec04c66fc2af230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ap,v 1.3 2005/02/24 23:07:34 minskim Exp $

--- linuxdoom-1.10/m_swap.h.orig	1997-12-22 14:14:41.000000000 -0600
+++ linuxdoom-1.10/m_swap.h
@@ -32,10 +32,10 @@
 // Endianess handling.
 // WAD files are stored little endian.
 #ifdef __BIG_ENDIAN__
-short	SwapSHORT(short);
-long	SwapLONG(long);
+unsigned short	SwapSHORT(unsigned short);
+unsigned int	SwapLONG(unsigned 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)