Skip to content
Snippets Groups Projects
Commit edf9bc34 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 c0f77e5c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3818 passed
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
#define SH_COMPAT 0 #define SH_COMPAT 0
#endif #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) #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS==64)
#define lseek _lseeki64 #define lseek _lseeki64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment