diff --git a/gb.net.curl/src/CNet.c b/gb.net.curl/src/CNet.c index 9374277f2..75f13ba7f 100644 --- a/gb.net.curl/src/CNet.c +++ b/gb.net.curl/src/CNet.c @@ -30,16 +30,17 @@ #define GBCURL(x) (-(1000+x)) -/* Fix building with old libcurl version */ +// Constants not defined in old versions of libcurl + #ifndef CURLE_FTP_PRET_FAILED -#define CURLE_FTP_PRET_FAILED 84 +#define CURLE_FTP_PRET_FAILED 84 #endif #ifndef CURLE_FTP_BAD_FILE_LIST -#define CURLE_FTP_BAD_FILE_LIST 87 +#define CURLE_FTP_BAD_FILE_LIST 87 #endif -#ifndef CURLE_CHUNK_FAILED 88 +#ifndef CURLE_CHUNK_FAILED +#define CURLE_CHUNK_FAILED 88 #endif -/* */ GB_DESC CNetDesc[] = {