summaryrefslogtreecommitdiff
path: root/games/wormz/patches/patch-ab
blob: 5fc2491a6eb5063e80f8848afba2e20d45ba828b (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ab,v 1.3 2006/04/21 09:00:23 joerg Exp $

--- ./include/Compat.hh.orig	Tue Jul  7 23:02:01 1998
+++ ./include/Compat.hh	Sat Feb  5 18:55:12 2000
@@ -14,7 +14,8 @@
 
 #ifndef Linux
 
-#include <bool.h>
+#define TRUE 1
+#define FALSE 0
 #include <string.h>
 
 inline void bzero(void * data, int size)
@@ -22,7 +23,9 @@
 	memset(data, 0, size);
 }
 
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
 const double PI=3.1415926535797;
+#endif
 
 inline int byteswap(int old)
 {
@@ -34,12 +37,15 @@
 
 inline int byteswapshort(unsigned short old)
 {
-  return ((old & 0xff) << 8)
-       + ((old & 0xff00) >> 8);
+/*  return ((old & 0xff) << 8)
+       + ((old & 0xff00) >> 8);*/
+	return(old);
 }
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
 extern "C" {
 int usleep(unsigned int);
 }
+#endif
 
 #endif
 #ifdef Linux