X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-compat-util.h;h=5d543d29f85e432a89bb8cbfbe2d18205599b06f;hb=1a82e79315ed633f6b0b1fc4076054950c5380d3;hp=f982b8e48469a5f09698808d1e55ded04d5923b8;hpb=731043fd4d55b1561ebb5a53daa4b9ff6dfac046;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index f982b8e4..5d543d29 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