projects
/
project
/
iwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iwinfo: move ARRAY_SIZE macro to iwinfo/utils.h
[project/iwinfo.git]
/
include
/
iwinfo
/
utils.h
diff --git
a/include/iwinfo/utils.h
b/include/iwinfo/utils.h
index
d4f32e4
..
95f9238
100644
(file)
--- 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;