curlx: add curlx_winapi_ functions

Split them out from lib/strerror. Used by test code.

Closes #17299
This commit is contained in:
Daniel Stenberg 2025-05-09 10:21:53 +02:00
parent 9468503330
commit c74d3e10d2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 193 additions and 110 deletions

View file

@ -29,9 +29,6 @@
#define STRERROR_LEN 256 /* a suitable length */
const char *Curl_strerror(int err, char *buf, size_t buflen);
#ifdef _WIN32
const char *curlx_winapi_strerror(DWORD err, char *buf, size_t buflen);
#endif
#ifdef USE_WINDOWS_SSPI
const char *Curl_sspi_strerror(int err, char *buf, size_t buflen);
#endif