summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-29 03:48:00 +0000
committerYang Tse <yangsita@gmail.com>2009-10-29 03:48:00 +0000
commitb205525d3481553ce073887e0bd7e90502c1432f (patch)
tree9c461d57af8f6a52b34572d6bc1b434a735ffef3
parent654b6b6c63c2a7b73c383e1e412faa02eb598a38 (diff)
downloadgnurl-b205525d3481553ce073887e0bd7e90502c1432f.tar.gz
gnurl-b205525d3481553ce073887e0bd7e90502c1432f.tar.bz2
gnurl-b205525d3481553ce073887e0bd7e90502c1432f.zip
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.
-rw-r--r--lib/urldata.h6
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>