aboutsummaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-battlestar_externs.h
blob: c6bfa19de6b61a3dd8857925a1fa2c8ceb909a90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- battlestar/externs.h.orig	2012-05-25 11:57:52.000000000 +0200
+++ battlestar/externs.h	2012-05-25 11:57:55.000000000 +0200
@@ -44,15 +44,18 @@
 #include <string.h>
 #include <unistd.h>
 
+/* We use our own */
+#undef setbit
+#undef testbit
+#undef clearbit
+
 #define BITS (8)
 
 #define OUTSIDE		(position > 68 && position < 246 && position != 218)
 #define rnd(x)          (random() % (x))
 #define max(a,b)	((a) < (b) ? (b) : (a))
 #define testbit(array, index)	(array[index/BITS] & (1 << (index % BITS)))
-#ifndef setbit
 #define setbit(array, index)	(array[index/BITS] |= (1 << (index % BITS)))
-#endif
 #define clearbit(array, index)	(array[index/BITS] &= ~(1 << (index % BITS)))
 
 	/* well known rooms */