From: Daniel Stenberg Date: Thu, 5 Jan 2012 18:57:39 +0000 (+0100) Subject: curl.h: provide backwards compatible symbols X-Git-Tag: curl-7_24_0~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52824ed1ab80d20941aa7fecd727000d83cdf47c;p=thirdparty%2Fcurl.git curl.h: provide backwards compatible symbols In commit c834213ad52 we re-used some obsolete error codes, and here are two defines that makes sure existing source codes that happen to use any of these deprecated ones will still compile. As usual, define CURL_NO_OLDIES to avoid getting these "precaution defines". --- diff --git a/include/curl/curl.h b/include/curl/curl.h index f53d6d4466..59a5c796ad 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -520,6 +520,10 @@ typedef enum { #ifndef CURL_NO_OLDIES /* define this to test if your app builds with all the obsolete stuff removed! */ +/* Previously obsoletes error codes re-used in 7.24.0 */ +#define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED +#define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT + /* compatibility with older names */ #define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING