Merge topic 'curl-pre-7.21.5'

1ea55acf cmCurl: Fix compilation with system curl versions prior to 7.21.5
This commit is contained in:
Brad King 2016-02-10 08:49:30 -05:00 committed by CMake Topic Stage
commit 7540deb185
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@
#include "cmCurl.h"
#include "cmSystemTools.h"
// curl versions before 7.21.5 did not provide this error code
#if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM < 0x071505
# define CURLE_NOT_BUILT_IN 4
#endif
#define check_curl_result(result, errstr) \
if (result != CURLE_OK && result != CURLE_NOT_BUILT_IN) \
{ \