CURLOPT_XFERINFOFUNCTION is an enum entry not a define, the check is invalid

This commit is contained in:
Marek Roszko 2023-02-14 23:23:52 -05:00
parent e8a88411ea
commit 94b5ddbb50
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ bool KICAD_CURL_EASY::SetTransferCallback( const TRANSFER_CALLBACK& aCallback, s
{ {
progress = std::make_unique<CURL_PROGRESS>( this, aCallback, progress = std::make_unique<CURL_PROGRESS>( this, aCallback,
static_cast<curl_off_t>( aInterval ) ); static_cast<curl_off_t>( aInterval ) );
#ifdef CURLOPT_XFERINFOFUNCTION #if LIBCURL_VERSION_NUM >= 0x072000
setOption( CURLOPT_XFERINFOFUNCTION, xferinfo ); setOption( CURLOPT_XFERINFOFUNCTION, xferinfo );
setOption( CURLOPT_XFERINFODATA, progress.get() ); setOption( CURLOPT_XFERINFODATA, progress.get() );
#else #else