fix for newer libcurl

Origin commit data
------------------
Branch: ni/coolstream
Commit: e864d6bdd0
Author: GetAway <get-away@t-online.de>
Date: 2023-01-12 (Thu, 12 Jan 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2023-01-12 21:08:40 +01:00
committed by vanhofen
parent 491028cc0b
commit fd52619377
5 changed files with 38 additions and 7 deletions

View File

@@ -2024,7 +2024,11 @@ bool downloadUrl(std::string url, std::string file, std::string userAgent, unsig
CURLcode httpres = curl_easy_perform(curl_handle);
double dsize;
#if CURL_AT_LEAST_VERSION( 7,55,0 )
curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD_T, &dsize);
#else
curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD, &dsize);
#endif
curl_easy_cleanup(curl_handle);
fclose(fp);