Skip to content

Commit 30491a9

Browse files
Add CurlProxyType alias (#1649)
Required for the compatibility with CURL 8.16+ Relates-To: HERESDK-5363 Signed-off-by: Andrey Kashcheev <[email protected]>
1 parent 2a9401b commit 30491a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,14 @@ int BlockSigpipeResult = BlockSigpipe();
155155

156156
#endif // IGNORE_SIGPIPE
157157

158+
#if CURL_AT_LEAST_VERSION(8, 16, 0)
159+
using CurlProxyType = long;
160+
#else
161+
using CurlProxyType = curl_proxytype;
162+
#endif
163+
158164
// To avoid static_cast and possible values changes in CURL
159-
curl_proxytype ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
165+
CurlProxyType ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
160166
using ProxyType = olp::http::NetworkProxySettings::Type;
161167
switch (type) {
162168
case ProxyType::HTTP:

0 commit comments

Comments
 (0)