blob: 611c6f99164ece7c1715ac7355789e554b4b6db2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ao,v 1.3 2010/02/22 21:58:47 wiz Exp $
--- linuxdoom-1.10/m_swap.c.orig Mon Dec 22 20:43:51 1997
+++ linuxdoom-1.10/m_swap.c Thu Feb 3 01:33:55 2000
@@ -31,8 +31,8 @@
#include "m_swap.h"
-// Not needed with big endian.
-#ifndef __BIG_ENDIAN__
+// Only needed with big endian.
+#ifdef __BIG_ENDIAN__
// Swap 16bit, that is, MSB and LSB byte.
unsigned short SwapSHORT(unsigned short x)
@@ -42,7 +42,7 @@
}
// Swapping 32bit.
-unsigned long SwapLONG( unsigned long x)
+unsigned int SwapLONG( unsigned int x)
{
return
(x>>24)
|