diff options
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index b893417a4..b02469976 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -133,6 +133,14 @@ typedef unsigned char bool; #define SEND_4TH_ARG 0 #endif +/* To make large file support transparent even on Windows */ +#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) +#define lseek(x,y,z) _lseeki64(x, y, z) +#define struct_stat struct _stati64 +#define fstat(fd,st) _fstati64(fd,st) +#else +#define struct_stat struct stat +#endif /* Below we define four functions. They should 1. close a socket |