From 039f155b0019efba26a013145b5cb28053ac451c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 6 Sep 2013 08:53:38 +0200 Subject: [PATCH] sysdb.h.in: Reintroduced SDB_STATIC_ARRAY_LEN(). Previously only added to the auto-generated sysdb.h :-/ D'oh! --- src/include/sysdb.h.in | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2