projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow gcc to still do the bounds checking
[super-star-trek.git]
/
src
/
sst.h
diff --git
a/src/sst.h
b/src/sst.h
index 83e74551da01625dd5bb87e411976f3bb0d4c938..2e6f90994d9ed41a272c73e9c2d4b4b13c447da6 100644
(file)
--- a/
src/sst.h
+++ b/
src/sst.h
@@
-203,6
+203,8
@@
extern double scheduled(int);
#define SSTMAGIC "SST2.0\n"
+#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
+
struct game {
char magic[sizeof(SSTMAGIC)];
unsigned long options;