diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-22 14:45:40 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-22 14:45:40 +0000 |
commit | 0246ce141b5d6fc01b87202548d41d3b939db401 (patch) | |
tree | fd81b80b4c9e21f26c7ba66b5918303e91545a33 /games/bsdgames/files/patch-battlestar_externs.h | |
parent | ac369e6a9fdae8314eda13e4d10e9a4f20f43744 (diff) | |
download | ports-0246ce141b5d6fc01b87202548d41d3b939db401.tar.gz ports-0246ce141b5d6fc01b87202548d41d3b939db401.zip |
Notes
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 */ |