2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
2017-01-03 07:30:53 +01:00
|
|
|
|
|
|
|
#include "Version.hxx"
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
bool
|
2017-05-08 14:44:49 +02:00
|
|
|
IsCurlOlderThan(unsigned version_num) noexcept
|
2017-01-03 07:30:53 +01:00
|
|
|
{
|
|
|
|
const auto *const info = curl_version_info(CURLVERSION_FIRST);
|
|
|
|
return info == nullptr || info->version_num < version_num;
|
|
|
|
}
|