diff options
Diffstat (limited to 'games/bsdgames/files/patch-battlestar_externs.h')
-rw-r--r-- | games/bsdgames/files/patch-battlestar_externs.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games/bsdgames/files/patch-battlestar_externs.h b/games/bsdgames/files/patch-battlestar_externs.h new file mode 100644 index 000000000000..c6bfa19de6b6 --- /dev/null +++ b/games/bsdgames/files/patch-battlestar_externs.h @@ -0,0 +1,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 */ |