Annotation of pkgsrc/games/xdoom/patches/patch-ap, Revision 1.5
1.4 wiz 1: $NetBSD: patch-ap,v 1.3 2005/02/24 23:07:34 minskim Exp $
1.1 abs 2:
1.3 minskim 3: --- linuxdoom-1.10/m_swap.h.orig 1997-12-22 14:14:41.000000000 -0600
1.2 blymn 4: +++ linuxdoom-1.10/m_swap.h
1.3 minskim 5: @@ -32,10 +32,10 @@
1.1 abs 6: // Endianess handling.
7: // WAD files are stored little endian.
8: #ifdef __BIG_ENDIAN__
9: -short SwapSHORT(short);
10: -long SwapLONG(long);
11: +unsigned short SwapSHORT(unsigned short);
12: +unsigned int SwapLONG(unsigned int);
13: #define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
14: -#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
15: +#define LONG(x) ((int)SwapLONG((unsigned int) (x)))
16: #else
17: #define SHORT(x) (x)
18: #define LONG(x) (x)
CVSweb <webmaster@jp.NetBSD.org>