git-tar-tree: no more void pointer arithmetic
[git.git] / git-compat-util.h
index f982b8e..5d543d2 100644 (file)
@@ -9,6 +9,8 @@
 #endif
 #endif
 
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>