summaryrefslogtreecommitdiff
path: root/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
commitefa231bec571af370931e4c5f4a6a23bded69edb (patch)
treea951c0713db518a2bbd3dbe03f41df6f5856df17 /setup.h
parent4e27354b82948d23492e5218f4462bcc38d99e1b (diff)
downloadc-ares-efa231bec571af370931e4c5f4a6a23bded69edb.tar.gz
c-ares-efa231bec571af370931e4c5f4a6a23bded69edb.tar.bz2
c-ares-efa231bec571af370931e4c5f4a6a23bded69edb.zip
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 'setup.h')
-rw-r--r--setup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index 2106df7..a20b8f1 100644
--- a/setup.h
+++ b/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 */