From 65e40a61951a62393ec474724d7ffad677afa57e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 19 Sep 2006 15:38:36 +0200 Subject: [PATCH] Provide inlined mkdir wrapper. --- compat/mingw.c | 6 ------ git-compat-util.h | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 0f7077983f..f85b0d2f52 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -115,12 +115,6 @@ int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t p return -1; } -#undef mkdir -int git_mkdir(const char *path, int mode) -{ - return mkdir(path); -} - #include struct tm *gmtime_r(const time_t *timep, struct tm *result) diff --git a/git-compat-util.h b/git-compat-util.h index 2bdae6725d..4ad37467e9 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -351,7 +351,10 @@ struct sigaction { struct itimerval { struct timeval it_interval, it_value; }; -int git_mkdir(const char *path, int mode); +static inline int git_mkdir(const char *path, int mode) +{ + return mkdir(path); +} #define mkdir git_mkdir #include