diff options
Diffstat (limited to 'src/gdbmdefs.h')
-rw-r--r-- | src/gdbmdefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gdbmdefs.h b/src/gdbmdefs.h index e1dcc66..18ab8a0 100644 --- a/src/gdbmdefs.h +++ b/src/gdbmdefs.h @@ -54,6 +54,9 @@ off_t_sum_ok (off_t a, off_t b) return a >= 0 && b >= 0 && OFF_T_MAX - a >= b; } + +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + /* The type definitions are next. */ /* The available file space is stored in an "avail" table. The one with |