diff options
| author | Jacques Germishuys <jacquesg@striata.com> | 2014-07-05 21:27:21 +0200 |
|---|---|---|
| committer | Jacques Germishuys <jacquesg@striata.com> | 2014-07-06 09:22:24 +0200 |
| commit | 72090514b14ef5d11828c960a905fe07ce68ae88 (patch) | |
| tree | 3f40c85f0a0e55019433fbe2d5fb6d0269999954 /src/win32/posix.h | |
| parent | 491ad0de59e1002acf9919d84557345e964b9d06 (diff) | |
| download | libgit2-72090514b14ef5d11828c960a905fe07ce68ae88.tar.gz | |
Secure CRT is only available from Visual Studio 2005+
Diffstat (limited to 'src/win32/posix.h')
| -rw-r--r-- | src/win32/posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h index 2cbea1807..22ea6a531 100644 --- a/src/win32/posix.h +++ b/src/win32/posix.h @@ -19,7 +19,7 @@ # define EAFNOSUPPORT (INT_MAX-1) #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && _MSC_VER >= 1500 # define p_ftruncate(fd, sz) _chsize_s(fd, sz) #else /* MinGW */ # define p_ftruncate(fd, sz) _chsize(fd, sz) |
