X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-compat-util.h;h=5d543d29f85e432a89bb8cbfbe2d18205599b06f;hb=7a97de4e19757b5576f32ce67d90cb792dbb893b;hp=f982b8e48469a5f09698808d1e55ded04d5923b8;hpb=d9ad59e7636d98daa6131e9fd2cb2b4f5745a853;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