mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:35:32 +00:00
Change ifdef for MINGW32.
This commit is contained in:
parent
7e9b21aa2a
commit
d8be508777
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user