diff --git a/git-compat-util.h b/git-compat-util.h
index f982b8e48469a5f09698808d1e55ded04d5923b8..5d543d29f85e432a89bb8cbfbe2d18205599b06f 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
#endif
#endif
#endif
#endif
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>