We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9401b commit 30491a9Copy full SHA for 30491a9
olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp
@@ -155,8 +155,14 @@ int BlockSigpipeResult = BlockSigpipe();
155
156
#endif // IGNORE_SIGPIPE
157
158
+#if CURL_AT_LEAST_VERSION(8, 16, 0)
159
+using CurlProxyType = long;
160
+#else
161
+using CurlProxyType = curl_proxytype;
162
+#endif
163
+
164
// To avoid static_cast and possible values changes in CURL
-curl_proxytype ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
165
+CurlProxyType ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
166
using ProxyType = olp::http::NetworkProxySettings::Type;
167
switch (type) {
168
case ProxyType::HTTP:
0 commit comments