From b205525d3481553ce073887e0bd7e90502c1432f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 29 Oct 2009 03:48:00 +0000 Subject: [PATCH] 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. --- lib/urldata.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +# if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \ + (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) +# define CARES_STATICLIB +# endif +# include #endif #include