Commit 7c80c19e by Vicent Marti

Fix compilation in MinGW

parent a8375f53
...@@ -57,7 +57,7 @@ typedef __time64_t git_time_t; ...@@ -57,7 +57,7 @@ typedef __time64_t git_time_t;
#elif defined(__MINGW32__) #elif defined(__MINGW32__)
typedef off64_t git_off_t; typedef off64_t git_off_t;
typedef time64_t git_time_t; typedef __time64_t git_time_t;
#else /* POSIX */ #else /* POSIX */
......
...@@ -32,7 +32,7 @@ static int creat_tempfile(char *path_out, const char *tmp_dir, const char *filen ...@@ -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); git__joinpath(path_out, tmp_dir, filename);
strcat(path_out, "_git2_XXXXXX"); strcat(path_out, "_git2_XXXXXX");
#ifdef GIT_WIN32 #if defined(_MSC_VER)
/* FIXME: there may be race conditions when multi-threading /* FIXME: there may be race conditions when multi-threading
* with the library */ * with the library */
if (_mktemp_s(path_out, GIT_PATH_MAX) != 0) if (_mktemp_s(path_out, GIT_PATH_MAX) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment