strdup: name it Curl_strdup

It does not belong in the curlx_ name space as it is never used
externally.

Closes #10132
This commit is contained in:
Daniel Stenberg 2022-12-22 10:15:38 +01:00
parent 72b819f147
commit e4505a1915
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ static curl_simple_lock s_lock = CURL_SIMPLE_LOCK_INIT;
#if defined(_WIN32_WCE)
#define system_strdup _strdup
#elif !defined(HAVE_STRDUP)
#define system_strdup curlx_strdup
#define system_strdup Curl_strdup
#else
#define system_strdup strdup
#endif

View File

@ -37,7 +37,7 @@
#include "memdebug.h"
#ifndef HAVE_STRDUP
char *curlx_strdup(const char *str)
char *Curl_strdup(const char *str)
{
size_t len;
char *newstr;

View File

@ -26,7 +26,7 @@
#include "curl_setup.h"
#ifndef HAVE_STRDUP
extern char *curlx_strdup(const char *str);
char *Curl_strdup(const char *str);
#endif
#ifdef WIN32
wchar_t* Curl_wcsdup(const wchar_t* src);