From e0b44cfb99c7e400c0fc51474f240dba3facd412 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 22 Jan 2019 00:49:54 +0100 Subject: win32: Use _fseeki64/_ftelli64 instead of fseeko/ftello --- src/download.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/download.c') diff --git a/src/download.c b/src/download.c index fab6bba..bd8a40f 100644 --- a/src/download.c +++ b/src/download.c @@ -135,7 +135,11 @@ int download_to_file(const char* url, const char* filename, int enable_progress) curl_easy_perform(handle); curl_easy_cleanup(handle); +#ifdef WIN32 + uint64_t sz = _ftelli64(f); +#else off_t sz = ftello(f); +#endif fclose(f); if ((sz == 0) || (sz == (off_t)-1)) { -- cgit v1.1-32-gdbae