Provide inlined mkdir wrapper.

This commit is contained in:
Johannes Schindelin
2006-09-19 15:38:36 +02:00
committed by Johannes Sixt
parent 14cd939112
commit 65e40a6195
2 changed files with 4 additions and 7 deletions

View File

@@ -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)

View File

@@ -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>