libifupdown: move ARRAY_SIZE() declaration from multicall

This commit is contained in:
Ariadne Conill 2020-08-19 01:50:10 -06:00
parent 56323828a9
commit eeb40fc689
2 changed files with 4 additions and 2 deletions

View file

@ -20,8 +20,6 @@
#include "libifupdown/libifupdown.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
struct if_applet;
struct if_option {

View file

@ -28,4 +28,8 @@
#include "libifupdown/lifecycle.h"
#include "libifupdown/tokenize.h"
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
#endif
#endif