From 8aa4246ddef30c0e114362b6ef2a8e6ee0ed3817 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 2 Feb 2019 03:15:25 +0100 Subject: win32: Use _lseeki64 instead of _fseeki64/_ftelli64 and don't link against msvcr100.dll What a mess it is, all these msvcr*.dll - incompatible without limits --- src/download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/download.c') diff --git a/src/download.c b/src/download.c index 8bae52f..e09d911 100644 --- a/src/download.c +++ b/src/download.c @@ -140,7 +140,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress) curl_easy_cleanup(handle); #ifdef WIN32 - uint64_t sz = _ftelli64(f); + uint64_t sz = _lseeki64(fileno(f), 0, SEEK_CUR); #else off_t sz = ftello(f); #endif -- cgit v1.1-32-gdbae