From: Yang Tse Date: Thu, 19 May 2011 09:48:32 +0000 (+0200) Subject: version: linkage fix X-Git-Tag: curl-7_21_7~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5db30a1d8c1250a787a65285499b949b92b0325f;p=curl version: linkage fix Fix linkage on c-ares enabled Windows static builds --- diff --git a/lib/version.c b/lib/version.c index 7d13c3453..c471dc106 100644 --- a/lib/version.c +++ b/lib/version.c @@ -33,7 +33,11 @@ #include #ifdef USE_ARES -#include +# if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \ + (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) +# define CARES_STATICLIB +# endif +# include #endif #ifdef USE_LIBIDN