From: Yang Tse Date: Thu, 29 Oct 2009 03:48:00 +0000 (+0000) Subject: Take in account c-ares 1.6.1 will use __declspec function decoration X-Git-Tag: curl-7_19_7~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b205525d3481553ce073887e0bd7e90502c1432f;p=curl 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. --- 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