diff options
author | Nikias Bassen | 2019-01-22 00:49:54 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-01-22 00:49:54 +0100 |
commit | e0b44cfb99c7e400c0fc51474f240dba3facd412 (patch) | |
tree | a1b53f6d3d144de5b71b2fc6b54a4107ecd70066 /src/download.c | |
parent | 95916028d8596727311509f75a599816c7689ee8 (diff) | |
download | idevicerestore-e0b44cfb99c7e400c0fc51474f240dba3facd412.tar.gz idevicerestore-e0b44cfb99c7e400c0fc51474f240dba3facd412.tar.bz2 |
win32: Use _fseeki64/_ftelli64 instead of fseeko/ftello
Diffstat (limited to 'src/download.c')
-rw-r--r-- | src/download.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) { |