summaryrefslogtreecommitdiff
path: root/common/env_flags.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env_flags.c')
-rw-r--r--common/env_flags.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/env_flags.c b/common/env_flags.c
index 735bba5f8b..921d3770ea 100644
--- a/common/env_flags.c
+++ b/common/env_flags.c
@@ -15,6 +15,7 @@
#include <env_attr.h>
#include <env_flags.h>
#define getenv fw_getenv
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#else
#include <common.h>
#include <environment.h>