samtools / htslib

C library for high-throughput sequencing data formats
Other
789 stars 447 forks source link

Switch to CURLINFO_CONTENT_LENGTH_DOWNLOAD_T for newer libcurl #1572

Closed daviesrob closed 1 year ago

daviesrob commented 1 year ago

The older CURLINFO_CONTENT_LENGTH_DOWNLOAD has been deprecated, and is now causing warnings to be printed on distributions that have moved on to the latest libcurl versions. CURLINFO_CONTENT_LENGTH_DOWNLOAD_T was officially added in curl 7.55.0.

daviesrob commented 1 year ago

Updated to use LIBCURL_VERSION_NUM. Sadly CURL_AT_LEAST_VERSION() doesn't exist in old curl include files (like those in CentOS 7).