summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2015-03-03 13:35:10 -0500
committerJeff Hostetler <jeffhost@microsoft.com>2015-03-03 13:35:10 -0500
commitd8be5087771db34b191b13f22a2846888a477c36 (patch)
tree6e6de86e8d41c48139bb8d7879966182708dee20
parent7e9b21aa2a13b97b54b0083eb8f40b7f428bc829 (diff)
downloadlibgit2-d8be5087771db34b191b13f22a2846888a477c36.tar.gz
Change ifdef for MINGW32.
-rw-r--r--src/win32/posix_w32.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index 874cba9cc..b8b4f43f8 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -55,12 +55,10 @@ int p_ftruncate(int fd, git_off_t size)
return -1;
}
-#if defined(_MSC_VER) && _MSC_VER >= 1500
+#if !defined(__MINGW32__)
return ((_chsize_s(fd, size) == 0) ? 0 : -1);
#else
- /* TODO Find a replacement for _chsize() that handles big files.
- * This comment is probably __MINGW32__ specific.
- */
+ /* TODO MINGW32 Find a replacement for _chsize() that handles big files. */
if (size > INT32_MAX) {
errno = EFBIG;
return -1;