diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-08 13:21:16 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-08 13:21:16 +0200 |
commit | 9842d2507fa19cdf7d0bfd76df73609d14473b49 (patch) | |
tree | 364dcdd7408bf22bdb1962a5c6e8d6b07743d34a /include | |
parent | 6e67940be59e1aee5d275dd61172b257cb34d726 (diff) | |
download | iwinfo-9842d2507fa19cdf7d0bfd76df73609d14473b49.tar.gz |
iwinfo: move ARRAY_SIZE macro to iwinfo/utils.h
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h index d4f32e4..95f9238 100644 --- a/include/iwinfo/utils.h +++ b/include/iwinfo/utils.h @@ -25,6 +25,10 @@ #include "iwinfo.h" +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#endif + #define LOG10_MAGIC 1.25892541179 extern struct uci_context *uci_ctx; |