aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-01-05 19:57:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-01-05 19:57:39 +0100
commit52824ed1ab80d20941aa7fecd727000d83cdf47c (patch)
tree5d56066b9edbf8daabdbc5f1445005710b587c28 /include
parent4897f4e517c96797dc4333746fbf24f1cb183c7e (diff)
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".
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index f53d6d446..59a5c796a 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, 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