iwinfo: move ARRAY_SIZE macro to iwinfo/utils.h
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
6e67940be5
commit
9842d2507f
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -313,10 +313,6 @@ const struct iwinfo_iso3166_label IWINFO_ISO3166_NAMES[] = {
|
|||
{ 0, "" }
|
||||
};
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
#endif
|
||||
|
||||
static const struct iwinfo_ops *backends[] = {
|
||||
#ifdef USE_NL80211
|
||||
&nl80211_ops,
|
||||
|
|
Loading…
Reference in a new issue