Skip to content
Snippets Groups Projects
Commit dc1af916 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

_chsize_s() is only available in MSVC, apparently

Fixes Borland and mingw-GCC  builds.
parent 03029045
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,9 @@
#define SH_COMPAT 0
#endif
#define chsize(fd,size) _chsize_s(fd,size)
#if defined(_MSC_VER)
#define chsize(fd,size) _chsize_s(fd,size)
#endif
#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS==64)
#define lseek _lseeki64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment