Skip to content

Commit

Permalink
define the obsolete options to different values to prevent "duplicate…
Browse files Browse the repository at this point in the history
… case"

situtations in bindings that still have switch() cases for them
  • Loading branch information
bagder committed Apr 23, 2004
1 parent 42f60ec commit b053ae6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/curl/curl.h
Expand Up @@ -783,12 +783,12 @@ typedef enum {

#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
the obsolete stuff removed! */
#define CURLOPT_HTTPREQUEST 0
#define CURLOPT_HTTPREQUEST -1
#define CURLOPT_FTPASCII CURLOPT_TRANSFERTEXT
#define CURLOPT_MUTE 0
#define CURLOPT_PASSWDFUNCTION 0
#define CURLOPT_PASSWDDATA 0
#define CURLOPT_CLOSEFUNCTION 0
#define CURLOPT_MUTE -2
#define CURLOPT_PASSWDFUNCTION -3
#define CURLOPT_PASSWDDATA -4
#define CURLOPT_CLOSEFUNCTION -5

#else
/* This is set if CURL_NO_OLDIES is defined at compile-time */
Expand Down

0 comments on commit b053ae6

Please sign in to comment.