I think it would be best to decorate the following functions properly
in case they are to be exported from cares.dll:
--- Git-latest\ares_strcasecmp.h Wed Jan 09 13:58:03 2013
+++ ares_strcasecmp.h Thu Mar 10 22:31:33 2013
@@ -17,14 +17,15 @@
* without express or implied warranty.
*/
+#include "ares.h"
#include "ares_setup.h"
#ifndef HAVE_STRCASECMP
-extern int ares_strcasecmp(const char *a, const char *b);
+CARES_EXTERN int ares_strcasecmp(const char *a, const char *b);
#endif
#ifndef HAVE_STRNCASECMP
-extern int ares_strncasecmp(const char *a, const char *b, size_t n);
+CARES_EXTERN int ares_strncasecmp(const char *a, const char *b, size_t n);
#endif
#endif /* HEADER_CARES_STRCASECMP_H */
---------
All the a*.c samples could be using these functions.
--gv
Received on 2013-04-03