From: Sebastian Harl Date: Fri, 6 Sep 2013 06:53:38 +0000 (+0200) Subject: sysdb.h.in: Reintroduced SDB_STATIC_ARRAY_LEN(). X-Git-Tag: sysdb-0.1.0~351 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=039f155b0019efba26a013145b5cb28053ac451c sysdb.h.in: Reintroduced SDB_STATIC_ARRAY_LEN(). Previously only added to the auto-generated sysdb.h :-/ D'oh! --- diff --git a/src/include/sysdb.h.in b/src/include/sysdb.h.in index 5c26de8..6766641 100644 --- a/src/include/sysdb.h.in +++ b/src/include/sysdb.h.in @@ -46,6 +46,8 @@ #define SDB_VERSION SDB_VERSION_ENCODE(SDB_VERSION_MAJOR, SDB_VERSION_MINOR, \ SDB_VERSION_PATCH) +#define SDB_STATIC_ARRAY_LEN(a) (sizeof((a)) / sizeof((a)[0])) + #ifdef __cplusplus extern "C" { #endif