mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
Provide inlined mkdir wrapper.
This commit is contained in:
committed by
Johannes Sixt
parent
14cd939112
commit
65e40a6195
@@ -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 <time.h>
|
||||
|
||||
struct tm *gmtime_r(const time_t *timep, struct tm *result)
|
||||
|
||||
@@ -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 <time.h>
|
||||
|
||||
Reference in New Issue
Block a user