diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-06 10:37:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-06 10:37:21 +0000 |
commit | fc07eb5eefe30336c4feb2dfa9923f19303a85f6 (patch) | |
tree | 1991778573495e349161b11e5107cfdbc8040a16 /source3/include | |
parent | f9f31ba33cb6af1750e437c72c738d38a75baaea (diff) | |
download | samba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.tar.gz samba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.tar.bz2 samba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.zip |
- fixed proto.h build on systems using a parallel make
- changed DENY1 and DENY2 tests to only report errors
(This used to be commit 9341e5534d0786e6ad7980e5fd1a0b35d77a2806)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb_macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index d28ef6f068..f6d547ea53 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -53,6 +53,9 @@ /* pointer difference macro */ #define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2))) +/* work out how many elements there are in a static array */ +#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) + /* assert macros */ #define SMB_ASSERT(b) ((b)?(void)0: \ (DEBUG(0,("PANIC: assert failed at %s(%d)\n", \ |