X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-compat-util.h;h=5d543d29f85e432a89bb8cbfbe2d18205599b06f;hb=ce0bd64299ae148ef61a63edcac635de41254cb5;hp=12ce6590bb926de2d27eee9520dd2017dd34554e;hpb=8fc11b5aa98540f7caab87e22e5aae63512893a2;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 12ce6590..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 @@ -63,6 +65,11 @@ extern int gitfakemunmap(void *start, size_t length); extern int gitsetenv(const char *, const char *, int); #endif +#ifdef NO_UNSETENV +#define unsetenv gitunsetenv +extern void gitunsetenv(const char *); +#endif + #ifdef NO_STRCASESTR #define strcasestr gitstrcasestr extern char *gitstrcasestr(const char *haystack, const char *needle);