From 9433ee08c506545322714ee71921cf2b9a9f787d Mon Sep 17 00:00:00 2001 From: Andrey Kashcheev Date: Wed, 10 Dec 2025 16:40:48 +0100 Subject: [PATCH] Add CurlProxyType alias Required for the compatibility with CURL 8.16+ Relates-To: HERESDK-5363 Signed-off-by: Andrey Kashcheev --- olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp index 3a30202ce..624585f57 100644 --- a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp +++ b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp @@ -155,8 +155,14 @@ int BlockSigpipeResult = BlockSigpipe(); #endif // IGNORE_SIGPIPE +#if CURL_AT_LEAST_VERSION(8, 16, 0) +using CurlProxyType = long; +#else +using CurlProxyType = curl_proxytype; +#endif + // To avoid static_cast and possible values changes in CURL -curl_proxytype ToCurlProxyType(olp::http::NetworkProxySettings::Type type) { +CurlProxyType ToCurlProxyType(olp::http::NetworkProxySettings::Type type) { using ProxyType = olp::http::NetworkProxySettings::Type; switch (type) { case ProxyType::HTTP: