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 7d13c34..c471dc1 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