memory: stop overriding unused wcsdup()/_wcsdup() system functions

Also ban them via `checksrc`.

The code continues to use `_tcsdup()`.

Assisted-by: Daniel Stenberg

Closes #17840
This commit is contained in:
Viktor Szakats 2025-07-07 11:46:26 +02:00
parent 7ae44fa9b9
commit ef2ccf862f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 2 additions and 10 deletions

View file

@ -142,10 +142,6 @@ CURL_EXTERN ALLOC_FUNC
#ifdef _WIN32
# ifdef UNICODE
# undef wcsdup
# define wcsdup(ptr) curl_dbg_wcsdup(ptr, __LINE__, __FILE__)
# undef _wcsdup
# define _wcsdup(ptr) curl_dbg_wcsdup(ptr, __LINE__, __FILE__)
# undef _tcsdup
# define _tcsdup(ptr) curl_dbg_wcsdup(ptr, __LINE__, __FILE__)
# else