mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
19 lines
628 B
Plaintext
19 lines
628 B
Plaintext
$NetBSD: patch-ap,v 1.5 2010/02/22 21:58:47 wiz 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)
|