Skip to content

Commit afab344

Browse files
committed
Merge pull request #81 from susnux/fix-compat
2 parents 0cdfb67 + ec7f54d commit afab344

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/curl_easy.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,12 @@ namespace curl {
351351
/* Max amount of cached alive connections */
352352
CURLCPP_DEFINE_OPTION(CURLOPT_MAXCONNECTS, long);
353353

354+
/* Renamed / obsoleted since 7.37 */
355+
#if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM > 0x072500
354356
CURLCPP_DEFINE_OPTION(CURLOPT_OBSOLETE72, long); /* OBSOLETE, do not use! */
357+
#else
358+
CURLCPP_DEFINE_OPTION(CURLOPT_CLOSEPOLICY, long);
359+
#endif
355360

356361
/* 73 = OBSOLETE */
357362

0 commit comments

Comments
 (0)