]> granicus.if.org Git - curl/commitdiff
version: linkage fix
authorYang Tse <yangsita@gmail.com>
Thu, 19 May 2011 09:48:32 +0000 (11:48 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 19 May 2011 09:50:20 +0000 (11:50 +0200)
Fix linkage on c-ares enabled Windows static builds

lib/version.c

index 7d13c3453e5d6ca66e3783a668728db5b19afc94..c471dc106b65c34e4fdfa77d31ae46df7c3557d9 100644 (file)
 #include <curl/mprintf.h>
 
 #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
 
 #ifdef USE_LIBIDN