]> granicus.if.org Git - curl/commitdiff
Take in account c-ares 1.6.1 will use __declspec function decoration
authorYang Tse <yangsita@gmail.com>
Thu, 29 Oct 2009 03:48:00 +0000 (03:48 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 29 Oct 2009 03:48:00 +0000 (03:48 +0000)
for Win32 and Symbian unless CARES_STATICLIB is defined to use static
library linkage.

lib/urldata.h

index b185c290530657870f77f88fc2ba769c05772e0e..014cb98f86a6eb071f9a09ca646a6a6a69a98eb7 100644 (file)
 #endif
 
 #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
 
 #include <curl/curl.h>