From 80b8b39899a09c7516920cda5fd343b3086d4824 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 25 Jun 2007 10:55:35 +0000 Subject: Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ) --- include/libbb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index b7b0657b6..3cdf28fab 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1071,4 +1071,7 @@ extern const char bb_default_login_shell[]; #include #endif + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* __LIBBUSYBOX_H__ */ -- cgit v1.2.3