Fix compilation in MinGW

This commit is contained in:
Vicent Marti 2011-03-23 01:58:18 +02:00
parent a8375f5322
commit 7c80c19e1d
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ typedef __time64_t git_time_t;
#elif defined(__MINGW32__)
typedef off64_t git_off_t;
typedef time64_t git_time_t;
typedef __time64_t git_time_t;
#else /* POSIX */

View File

@ -32,7 +32,7 @@ static int creat_tempfile(char *path_out, const char *tmp_dir, const char *filen
git__joinpath(path_out, tmp_dir, filename);
strcat(path_out, "_git2_XXXXXX");
#ifdef GIT_WIN32
#if defined(_MSC_VER)
/* FIXME: there may be race conditions when multi-threading
* with the library */
if (_mktemp_s(path_out, GIT_PATH_MAX) != 0)