libifupdown: move ARRAY_SIZE() declaration from multicall
This commit is contained in:
parent
56323828a9
commit
eeb40fc689
2 changed files with 4 additions and 2 deletions
|
@ -20,8 +20,6 @@
|
||||||
|
|
||||||
#include "libifupdown/libifupdown.h"
|
#include "libifupdown/libifupdown.h"
|
||||||
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
|
||||||
|
|
||||||
struct if_applet;
|
struct if_applet;
|
||||||
|
|
||||||
struct if_option {
|
struct if_option {
|
||||||
|
|
|
@ -28,4 +28,8 @@
|
||||||
#include "libifupdown/lifecycle.h"
|
#include "libifupdown/lifecycle.h"
|
||||||
#include "libifupdown/tokenize.h"
|
#include "libifupdown/tokenize.h"
|
||||||
|
|
||||||
|
#ifndef ARRAY_SIZE
|
||||||
|
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue