summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-01-22 20:27:48 +0000
committerYang Tse <yangsita@gmail.com>2010-01-22 20:27:48 +0000
commit143586403055b977bfe17b06042ebc3beb5d4d82 (patch)
tree83b2cc9c957dbf1ffd7d5ffe5e3207dee905e523 /lib/hostip.h
parent4a8a73147610ec6522afe5d847761d95b54aca16 (diff)
downloadcurl-143586403055b977bfe17b06042ebc3beb5d4d82.tar.gz
Definitions of resolver specialty compile-time defines CURLRES_* moved
from hostip.h to setup.h in order to allow proper inclusion in any file. This represents no functional change at all in which resolver is used, everything still works as usual, internally and externally there is no difference in behavior.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index e987f301e..85425b6ce 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -37,38 +37,13 @@
#endif
/*
- * Setup comfortable CURLRES_* defines to use in the host*.c sources.
+ * Comfortable CURLRES_* definitions are included from setup.h
*/
#ifdef USE_ARES
#include <ares_version.h>
#endif
-#ifdef USE_ARES
-#define CURLRES_ASYNCH
-#define CURLRES_ARES
-#endif
-
-#ifdef USE_THREADING_GETHOSTBYNAME
-#define CURLRES_ASYNCH
-#define CURLRES_THREADED
-#endif
-
-#ifdef USE_THREADING_GETADDRINFO
-#define CURLRES_ASYNCH
-#define CURLRES_THREADED
-#endif
-
-#ifdef ENABLE_IPV6
-#define CURLRES_IPV6
-#else
-#define CURLRES_IPV4
-#endif
-
-#ifndef CURLRES_ASYNCH
-#define CURLRES_SYNCH
-#endif
-
/* Allocate enough memory to hold the full name information structs and
* everything. OSF1 is known to require at least 8872 bytes. The buffer
* required for storing all possible aliases and IP numbers is according to