aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-18 00:25:48 +0000
committerYang Tse <yangsita@gmail.com>2009-05-18 00:25:48 +0000
commit0cf8d4f8e8d847af1fb3756ecfac13423215d59e (patch)
treee247b7c4de8dcdc217c5b38bb68296066496e1a3
parent084447e414a6ed992c252f1e143676d3eac37742 (diff)
Simplify c-ares function capability check
-rw-r--r--lib/easy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 6c21d76b9..7701ce8e5 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -280,7 +280,7 @@ CURLcode curl_global_init(long flags)
idna_init();
#endif
-#if defined(USE_ARES) && defined(ARES_VERSION) && (ARES_VERSION >= 0x010601)
+#ifdef CARES_HAVE_ARES_LIBRARY_INIT
if(ares_library_init(ARES_LIB_INIT_ALL)) {
DEBUGF(fprintf(stderr, "Error: ares_library_init failed\n"));
return CURLE_FAILED_INIT;
@@ -340,7 +340,7 @@ void curl_global_cleanup(void)
if(init_flags & CURL_GLOBAL_SSL)
Curl_ssl_cleanup();
-#if defined(USE_ARES) && defined(ARES_VERSION) && (ARES_VERSION >= 0x010601)
+#ifdef CARES_HAVE_ARES_LIBRARY_CLEANUP
ares_library_cleanup();
#endif