aboutsummaryrefslogtreecommitdiff
path: root/ares/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-06-02 19:48:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-06-02 19:48:29 +0000
commitb084dc87600e8f1ab8a583f7f6b52b5c332d91b3 (patch)
tree37ef913082cc6483fbf0d69042f743b5f5f9d918 /ares/setup.h
parent2ae9536d324163b308c2f18f7d054d49f92d242a (diff)
Brad House fixed VS2005 compiler warnings due to time_t being 64bit.
He also made recent Microsoft compilers use _strdup() instead of strdup().
Diffstat (limited to 'ares/setup.h')
-rw-r--r--ares/setup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares/setup.h b/ares/setup.h
index 2106df770..a20b8f1b7 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -144,6 +144,11 @@ int ares_strcasecmp(const char *s1, const char *s2);
same */
#define strncasecmp(a,b,c) ares_strncasecmp(a,b,c)
#define strcasecmp(a,b) ares_strcasecmp(a,b)
+#ifdef _MSC_VER
+# if _MSC_VER >= 1400
+# define strdup(a) _strdup(a)
+# endif
+#endif
#endif
/* IPv6 compatibility */