strdup() clone for systems/configurations which lack it

This commit is contained in:
Yang Tse
2008-09-11 04:02:49 +00:00
parent 2cb5cbba34
commit 797372b0f4
8 changed files with 208 additions and 7 deletions
-5
View File
@@ -150,11 +150,6 @@ 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 */