mirror of
https://github.com/curl/curl.git
synced 2026-05-21 08:06:20 +03:00
curl.h: change some enums to defines with L suffix
To help applications do the right thing easier, change some enum values into defines with L suffixes so that they get the corect type (long) easier when used with curl_easy_setopt(). This also fixes a few of our own libtests. To reduce the risk that this change breaks the compile for any existing users, the previously provided enums are still provided, but the values to use are not defined by the enums. This change "magically" fixes a few RTSP test failures we have had on 64-bit platforms because those options were not see using longs properly. Closes #16482
This commit is contained in:
parent
7826927d9b
commit
2ec00372a1
4 changed files with 42 additions and 36 deletions
|
|
@ -438,7 +438,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
*/
|
||||
if((arg < CURL_TIMECOND_NONE) || (arg >= CURL_TIMECOND_LAST))
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
data->set.timecondition = (unsigned char)(curl_TimeCond)arg;
|
||||
data->set.timecondition = (unsigned char)arg;
|
||||
break;
|
||||
case CURLOPT_TIMEVALUE:
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue