diff options
author | Yang Tse <yangsita@gmail.com> | 2009-10-29 03:48:00 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-10-29 03:48:00 +0000 |
commit | b205525d3481553ce073887e0bd7e90502c1432f (patch) | |
tree | 9c461d57af8f6a52b34572d6bc1b434a735ffef3 /lib | |
parent | 654b6b6c63c2a7b73c383e1e412faa02eb598a38 (diff) |
Take in account c-ares 1.6.1 will use __declspec function decoration
for Win32 and Symbian unless CARES_STATICLIB is defined to use static
library linkage.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/urldata.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index b185c2905..014cb98f8 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -115,7 +115,11 @@ #endif #ifdef USE_ARES -#include <ares.h> +# if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \ + (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) +# define CARES_STATICLIB +# endif +# include <ares.h> #endif #include <curl/curl.h> |