Skip to content

Commit a9e44c5

Browse files
committed
Fix libcurl version check in downloader.cpp
1 parent 4090bd0 commit a9e44c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addon/downloader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class Transfer final
297297

298298
curl_easy_setopt(m_handle, CURLOPT_NOPROGRESS, 0);
299299
curl_easy_setopt(m_handle, CURLOPT_PROGRESSDATA, this);
300-
#if LIBCURL_VERSION_MAJOR >= 7 && LIBCURL_VERSION_MINOR >= 32
300+
#if LIBCURL_VERSION_MAJOR > 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 32)
301301
curl_easy_setopt(m_handle, CURLOPT_XFERINFOFUNCTION, &Transfer::on_progress_wrap);
302302
#else
303303
curl_easy_setopt(m_handle, CURLOPT_PROGRESSFUNCTION, &Transfer::on_progress_wrap);

0 commit comments

Comments
 (0)