fa022bb0af
Actually work with the supplied WAD file One file-to-patch per patchfile Remove strange 'post-patch' substitute X11_BASE phase Fix numerous coredumps Add a '-h' usage Handle the sndserver dying Make it work on little endian systems Add a '-volume X' flag, and skip all sound code if 0 Other cleanup in some of the more repellant code areas.
30 lines
621 B
Text
30 lines
621 B
Text
$NetBSD: patch-az,v 1.1 2000/02/03 16:01:16 abs Exp $
|
|
|
|
--- sndserv/wadread.c.orig Thu Jan 30 19:54:23 1997
|
|
+++ sndserv/wadread.c Thu Feb 3 01:34:06 2000
|
|
@@ -94,12 +94,7 @@
|
|
// Something new.
|
|
// This version of w_wad.c does handle endianess.
|
|
//
|
|
-#ifndef __BIG_ENDIAN__
|
|
-
|
|
-#define LONG(x) (x)
|
|
-#define SHORT(x) (x)
|
|
-
|
|
-#else
|
|
+#if defined(__BIG_ENDIAN__) || (BYTE_ORDER == BIG_ENDIAN)
|
|
|
|
#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
|
|
#define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
|
|
@@ -118,6 +113,11 @@
|
|
return
|
|
(x>>8) | (x<<8);
|
|
}
|
|
+
|
|
+#else
|
|
+
|
|
+#define LONG(x) (x)
|
|
+#define SHORT(x) (x)
|
|
|
|
#endif
|
|
|