curl.h: make CURLOPT_WRITEINFO and CURLOPT_CLOSEPOLICY compile
The symbols have not been in use for 17+ years and they did not do
anything for several years before that, but apparently there are still
code using them.
Follow-up to 3b057d4b7a
Fixes #14747
Reported-by: Kai Pastor
Closes #14748
This commit is contained in:
parent
3362994948
commit
8bb71d5fd3
@ -721,6 +721,8 @@ typedef enum {
|
|||||||
with them. */
|
with them. */
|
||||||
#define CURLOPT_WRITEINFO CURLOPT_OBSOLETE40
|
#define CURLOPT_WRITEINFO CURLOPT_OBSOLETE40
|
||||||
#define CURLOPT_CLOSEPOLICY CURLOPT_OBSOLETE72
|
#define CURLOPT_CLOSEPOLICY CURLOPT_OBSOLETE72
|
||||||
|
#define CURLOPT_OBSOLETE72 9999
|
||||||
|
#define CURLOPT_OBSOLETE40 9999
|
||||||
|
|
||||||
#endif /* !CURL_NO_OLDIES */
|
#endif /* !CURL_NO_OLDIES */
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,7 @@ while(<STDIN>) {
|
|||||||
if(/^#define (CURLOPT_[^ ]*) *(CURLOPT_\S*)/) {
|
if(/^#define (CURLOPT_[^ ]*) *(CURLOPT_\S*)/) {
|
||||||
my ($o, $n)=($1, $2);
|
my ($o, $n)=($1, $2);
|
||||||
# skip obsolete ones
|
# skip obsolete ones
|
||||||
if($n !~ /OBSOLETE/) {
|
if(($n !~ /OBSOLETE/) && ($o !~ /OBSOLETE/)) {
|
||||||
$o =~ s/^CURLOPT_//;
|
$o =~ s/^CURLOPT_//;
|
||||||
$n =~ s/^CURLOPT_//;
|
$n =~ s/^CURLOPT_//;
|
||||||
$alias{$o} = $n;
|
$alias{$o} = $n;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user