Remove the unused strdup definition from dstring.c
Actually was never needed
@@ -356,26 +356,3 @@ strlcat(char* dst, const char* src, size_t dsize)
}
#endif /*!_WIN32*/
#endif /*!HAVE_STRLCAT*/
-
-/* It turns out the gcc -ansi under cygwin does
- not define the following function(s) in <string.h>.
-*/
-#ifndef HAVE_STRDUP
-#if 0
-#if __STDC__ == 1 /*supposed to be same as -ansi flag */
-/*
- * Duplicate the given string
- */
-char*
-strdup(const char* s)
-{
- size_t len = strlen(s);
- char* news;
- if((news = malloc(len + 1)))
- memcpy(news, s, len+1);
- return news;
-}
-#endif /*__STDC__*/
-#endif /*0*/
-#endif /*HAVE_STRDUP*/
-
