mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
cmCurl: Fix compilation with system curl versions prior to 7.21.5
This version introduced CURLE_NOT_BUILT_IN which we have used since commit v3.4.0-rc1~211^2~4 (cmCurl: Tolerate lack of CURLOPT_CAPATH support, 2015-08-12). For older versions, just define the name to the then-unused error code so that we can compile.
This commit is contained in:
parent
a5a5a68572
commit
1ea55acf8a
@ -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) \
|
||||
{ \
|
||||
|
Loading…
Reference in New Issue
Block a user