Moved strdup replacement from src/main.c into src/strdup.c so it's available

in libcurl as well, if necessary.
This commit is contained in:
Dan Fandrich
2006-07-11 17:02:06 +00:00
parent 012d75442a
commit c6fc5a1a26
7 changed files with 105 additions and 31 deletions

View File

@@ -177,4 +177,9 @@ int fileno( FILE *stream);
#define UNPRINTABLE_CHAR '.'
#endif
#ifndef HAVE_STRDUP
#include "strdup.h"
#define strdup(ptr) curlx_strdup(ptr)
#endif
#endif /* __SRC_CURL_SETUP_H */