diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-23 01:58:18 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-23 01:58:18 +0200 |
| commit | 7c80c19e1dffb4421f91913bc79b9cb7596634a4 (patch) | |
| tree | 0b71f23d18f706d4b8a76e7afb55f0aa20102027 /src | |
| parent | a8375f532204f4c0c70a3f937b47000b61669725 (diff) | |
| download | libgit2-7c80c19e1dffb4421f91913bc79b9cb7596634a4.tar.gz | |
Fix compilation in MinGW
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index e440ea6ab..d754c49ee 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -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) |
