summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3509e19)
raw | patch | inline | side by side (parent: 3509e19)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 6 Sep 2013 06:53:38 +0000 (08:53 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 6 Sep 2013 06:53:38 +0000 (08:53 +0200) |
Previously only added to the auto-generated sysdb.h :-/ D'oh!
src/include/sysdb.h.in | patch | blob | history |
diff --git a/src/include/sysdb.h.in b/src/include/sysdb.h.in
index 5c26de8794722cd25b7e9fa1eae2e714380c7cf5..67666412416d703450d87fc7a52f0231cba0f37a 100644 (file)
--- a/src/include/sysdb.h.in
+++ b/src/include/sysdb.h.in
#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