aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-19 09:03:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-19 09:03:21 +0000
commitf191b143e99d26a1d68537a30fd3e8723060f674 (patch)
tree170d6c1feefae8cc177608d74bd434de12969f97
parent59212553b5a2d8c86ababb487531f86e921e867c (diff)
CURL_VERSION_CONV is returned by curl_version_info if libcurl has been built
to allow/support character conversions
-rw-r--r--include/curl/curl.h2
-rw-r--r--lib/version.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 87639fec4..9c392cce6 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1474,6 +1474,8 @@ typedef struct {
#define CURL_VERSION_LARGEFILE (1<<9) /* supports files bigger than 2GB */
#define CURL_VERSION_IDN (1<<10) /* International Domain Names support */
#define CURL_VERSION_SSPI (1<<11) /* SSPI is supported */
+#define CURL_VERSION_CONV (1<<12) /* character conversions are
+ supported */
/*
* NAME curl_version_info()
diff --git a/lib/version.c b/lib/version.c
index 53e2b56ef..6cf5eb5de 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2006, 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
@@ -153,6 +153,9 @@ static curl_version_info_data version_info = {
#if defined(ENABLE_64BIT) && (SIZEOF_CURL_OFF_T > 4)
| CURL_VERSION_LARGEFILE
#endif
+#if defined(CURL_DOES_CONVERSIONS)
+ | CURL_VERSION_CONV
+#endif
,
NULL, /* ssl_version */
0, /* ssl_version_num, this is kept at zero */