mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:43:35 +03:00
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:
parent
012d75442a
commit
c6fc5a1a26
7 changed files with 105 additions and 31 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue