fix: remove CURL_VERSION_BITS macro (#4673)

Fixes #4671.
This commit is contained in:
Charles Kerr 2023-01-26 11:25:53 -06:00 committed by GitHub
parent 862abe909c
commit aabf1b7e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ void tr_tracker_http_announce(
* is expensive (disabling DNS cache), so instead we have to make do with
* a request that we don't know if will go through IPv6 or IPv4.
*/
static bool const use_curl_workaround = curl_version_info(CURLVERSION_NOW)->version_num < CURL_VERSION_BITS(7, 77, 0);
static auto const use_curl_workaround = curl_version_info(CURLVERSION_NOW)->version_num < 0x074D00 /* 7.77.0 */;
if (use_curl_workaround)
{
if (session->useAnnounceIP())