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.
This commit is contained in:
Yang Tse 2009-10-29 03:48:00 +00:00
parent 654b6b6c63
commit b205525d34
1 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,11 @@
#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>