From b4f2a6ac9263d6e9bf3bf9c8abe607cd6def0ee8 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 9 Mar 2006 11:58:05 -0800 Subject: Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) Signed-off-by: Junio C Hamano --- git-compat-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git-compat-util.h') diff --git a/git-compat-util.h b/git-compat-util.h index f982b8e484..5d543d29f8 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -9,6 +9,8 @@ #endif #endif +#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) + #include #include #include -- cgit v1.2.3