diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 07:20:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 07:20:11 +0000 |
commit | 648e82f05d8bce097f9f81b78d9df40f647f6170 (patch) | |
tree | 3853fbb58d25240561337356c5a99e44ffd57a72 /lib/setup.h | |
parent | 1dbe60b8b71c2308fab987f5b4c6c6e9a264dd66 (diff) |
Major hostip.c cleanup and split into multiple files and easier #ifdef
usage.
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h index 35370f673..0bbdbd5b3 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -261,9 +261,13 @@ typedef int curl_socket_t; #error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild" #endif -#if defined(WIN32) && !defined(__CYGWIN32__) && !defined(USE_ARES) && !defined(ENABLE_IPV6) +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(USE_ARES) +#ifdef ENABLE_IPV6 +#define USE_THREADING_GETADDRINFO +#else #define USE_THREADING_GETHOSTBYNAME /* Cygwin uses alarm() function */ #endif +#endif /* * Curl_addrinfo MUST be used for name resolving information. @@ -296,4 +300,10 @@ typedef struct in_addr Curl_ipconnect; #undef HAVE_ALARM #endif +#ifdef HAVE_LIBIDN +/* This could benefit from additional checks that some of the used/important + header files are present as well before we define the USE_* define. */ +#define USE_LIBIDN +#endif + #endif /* __CONFIG_H */ |