Skip to content

Commit

Permalink
fix andelf#84 - library not supporting curl version 8.0.X or higher
Browse files Browse the repository at this point in the history
Modify `misc/compatgen.py` to emit compatability also with
version `8.0.0` or higher.
  • Loading branch information
Laeri committed Mar 22, 2023
1 parent fd49ff2 commit 1a5142f
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 274 deletions.
146 changes: 146 additions & 0 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,108 @@



#if (LIBCURL_VERSION_MINOR == 0 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 0
#if (LIBCURL_VERSION_MINOR == 0 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 0
#if (LIBCURL_VERSION_MINOR == 88 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 88
#if (LIBCURL_VERSION_MINOR == 88 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 88
#if (LIBCURL_VERSION_MINOR == 87 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 87
#if (LIBCURL_VERSION_MINOR == 86 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 86
#if (LIBCURL_VERSION_MINOR == 85 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 85
#define CURLOPT_FTP_RESPONSE_TIMEOUT 0
#define CURLE_OBSOLETE75 -1
#if (LIBCURL_VERSION_MINOR == 84 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 84
#define CURLE_UNRECOVERABLE_POLL -1
#define CURLINFO_CAINFO 0
#define CURLINFO_CAPATH 0
#define CURL_VERSION_THREADSAFE 0
#if (LIBCURL_VERSION_MINOR == 83 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 83
#if (LIBCURL_VERSION_MINOR == 83 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 83
#if (LIBCURL_VERSION_MINOR == 82 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 82
#define CURLE_OBSOLETE62 -1
#define CURLE_OBSOLETE76 -1
#if (LIBCURL_VERSION_MINOR == 81 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 81
#if (LIBCURL_VERSION_MINOR == 80 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 80
#if (LIBCURL_VERSION_MINOR == 79 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 79
#if (LIBCURL_VERSION_MINOR == 79 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 79
#if (LIBCURL_VERSION_MINOR == 78 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 78
#define CURLE_SETOPT_OPTION_SYNTAX -1
#if (LIBCURL_VERSION_MINOR == 77 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 77
#define CURLE_SSL_CLIENTCERT -1
#if (LIBCURL_VERSION_MINOR == 76 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 76
#if (LIBCURL_VERSION_MINOR == 76 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 76
#define CURLINFO_REFERER 0
#define CURL_VERSION_GSASL 0
#if (LIBCURL_VERSION_MINOR == 75 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 75
#define CURLAUTH_AWS_SIGV4 0
#if (LIBCURL_VERSION_MINOR == 74 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 74
#define CURL_VERSION_HSTS 0
#if (LIBCURL_VERSION_MINOR == 73 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 73
#define CURLOPT_PROGRESSDATA 0
#define CURLE_PROXY -1
#define CURLINFO_PROXY_ERROR 0
#if (LIBCURL_VERSION_MINOR == 72 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 72
#define CURLINFO_EFFECTIVE_METHOD 0
#define CURL_VERSION_ZSTD 0
#define CURL_VERSION_UNICODE 0
#if (LIBCURL_VERSION_MINOR == 71 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 71
#if (LIBCURL_VERSION_MINOR == 71 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 71
#if (LIBCURL_VERSION_MINOR == 70 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 70
#if (LIBCURL_VERSION_MINOR == 69 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 69
#if (LIBCURL_VERSION_MINOR == 69 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 69
#define CURLE_QUIC_CONNECT_ERROR -1
#if (LIBCURL_VERSION_MINOR == 68 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 68
#define CURLE_HTTP3 -1
#if (LIBCURL_VERSION_MINOR == 67 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 67
#define CURL_VERSION_ESNI 0
#if (LIBCURL_VERSION_MINOR == 66 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 66
#define CURLOPT_SASL_AUTHZID 0
#define CURLE_AUTH_ERROR -1
#define CURLINFO_RETRY_AFTER 0
#define CURL_VERSION_HTTP3 0
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 3) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 65
#define CURLOPT_MAXAGE_CONN 0
#if (LIBCURL_VERSION_MINOR == 64 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 64
#define CURLOPT_ALTSVC_CTRL 0
#define CURLOPT_ALTSVC 0
#define CURL_VERSION_ALTSVC 0
#if (LIBCURL_VERSION_MINOR == 64 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 64
#define CURLOPT_TRAILERFUNCTION 0
#define CURLOPT_TRAILERDATA 0
#define CURLOPT_HTTP09_ALLOWED 0
#if (LIBCURL_VERSION_MINOR == 63 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 63
#define CURLOPT_CURLU 0
#if (LIBCURL_VERSION_MINOR == 62 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 62
#define CURLOPT_DOH_URL 0
#define CURLOPT_UPLOAD_BUFFERSIZE 0
#define CURLOPT_UPKEEP_INTERVAL_MS 0
#define CURLE_OBSOLETE51 -1
#if (LIBCURL_VERSION_MINOR == 61 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 61
#if (LIBCURL_VERSION_MINOR == 61 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 61
#define CURLOPT_TLS13_CIPHERS 0
#define CURLOPT_PROXY_TLS13_CIPHERS 0
#define CURLOPT_DISALLOW_USERNAME_IN_URL 0
#define CURLINFO_TOTAL_TIME_T 0
#define CURLINFO_NAMELOOKUP_TIME_T 0
#define CURLINFO_CONNECT_TIME_T 0
#define CURLINFO_PRETRANSFER_TIME_T 0
#define CURLINFO_STARTTRANSFER_TIME_T 0
#define CURLINFO_REDIRECT_TIME_T 0
#define CURLINFO_APPCONNECT_TIME_T 0
#define CURLAUTH_BEARER 0
#if (LIBCURL_VERSION_MINOR == 60 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 60
#define CURLOPT_HAPROXYPROTOCOL 0
#define CURLOPT_DNS_SHUFFLE_ADDRESSES 0
#if (LIBCURL_VERSION_MINOR == 59 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 59
#define CURLOPT_TIMEVALUE_LARGE 0
#define CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS 0
#define CURLOPT_RESOLVER_START_FUNCTION 0
#define CURLOPT_RESOLVER_START_DATA 0
#define CURLE_RECURSIVE_API_CALL -1
#define CURLINFO_FILETIME_T 0
#if (LIBCURL_VERSION_MINOR == 58 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 58
#if (LIBCURL_VERSION_MINOR == 57 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 57
#define CURL_VERSION_BROTLI 0
#if (LIBCURL_VERSION_MINOR == 56 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 56
Expand Down Expand Up @@ -525,4 +627,48 @@
#endif /* 7.56.0 */
#endif /* 7.56.1 */
#endif /* 7.57.0 */
#endif /* 7.58.0 */
#endif /* 7.59.0 */
#endif /* 7.60.0 */
#endif /* 7.61.0 */
#endif /* 7.61.1 */
#endif /* 7.62.0 */
#endif /* 7.63.0 */
#endif /* 7.64.0 */
#endif /* 7.64.1 */
#endif /* 7.65.0 */
#endif /* 7.65.1 */
#endif /* 7.65.2 */
#endif /* 7.65.3 */
#endif /* 7.66.0 */
#endif /* 7.67.0 */
#endif /* 7.68.0 */
#endif /* 7.69.0 */
#endif /* 7.69.1 */
#endif /* 7.70.0 */
#endif /* 7.71.0 */
#endif /* 7.71.1 */
#endif /* 7.72.0 */
#endif /* 7.73.0 */
#endif /* 7.74.0 */
#endif /* 7.75.0 */
#endif /* 7.76.0 */
#endif /* 7.76.1 */
#endif /* 7.77.0 */
#endif /* 7.78.0 */
#endif /* 7.79.0 */
#endif /* 7.79.1 */
#endif /* 7.80.0 */
#endif /* 7.81.0 */
#endif /* 7.82.0 */
#endif /* 7.83.0 */
#endif /* 7.83.1 */
#endif /* 7.84.0 */
#endif /* 7.85.0 */
#endif /* 7.86.0 */
#endif /* 7.87.0 */
#endif /* 7.88.0 */
#endif /* 7.88.1 */
#endif /* 8.0.0 */
#endif /* 8.0.1 */
/* generated ends */
Loading

0 comments on commit 1a5142f

Please sign in to comment.