mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
CURLOPT: bump CURL_REDIR_* macros to long
This patch bumps the size of these macros from `int` to `long`, while keeping their actual values the same. It may cause incompatibilities in user code, requiring the bump of holder variables and/or adding casts: - CURL_REDIR_GET_ALL - CURL_REDIR_POST_301 - CURL_REDIR_POST_302 - CURL_REDIR_POST_303 - CURL_REDIR_POST_ALL Also: - keep existing cast within the documentation to make sure it applies to older curl versions as well. Closes #18110
This commit is contained in:
@@ -2398,10 +2398,10 @@ enum CURL_TLSAUTH {
|
||||
can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
|
||||
| CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
|
||||
|
||||
#define CURL_REDIR_GET_ALL 0
|
||||
#define CURL_REDIR_POST_301 1
|
||||
#define CURL_REDIR_POST_302 2
|
||||
#define CURL_REDIR_POST_303 4
|
||||
#define CURL_REDIR_GET_ALL 0L
|
||||
#define CURL_REDIR_POST_301 1L
|
||||
#define CURL_REDIR_POST_302 2L
|
||||
#define CURL_REDIR_POST_303 4L
|
||||
#define CURL_REDIR_POST_ALL \
|
||||
(CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user