Cygwin: mbrtowi: fix return type

bad typo: change wint_t to size_t

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-02-14 20:18:42 +01:00
parent 1387ea9f98
commit 1fc35f30bd
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ extern wctomb_f __utf8_wctomb;
/* replacement function for mbrtowc, returning a wint_t representing
a UTF-32 value. Defined in strfuncs.cc */
extern wint_t mbrtowi (wint_t *, const char *, size_t, mbstate_t *);
extern size_t mbrtowi (wint_t *, const char *, size_t, mbstate_t *);
#ifdef __cplusplus
}

View File

@ -114,7 +114,7 @@ transform_chars_af_unix (PWCHAR out, const char *path, __socklen_t len)
/* replacement function for mbrtowc, returning a wint_t representing
a UTF-32 value. */
extern "C" wint_t
extern "C" size_t
mbrtowi (wint_t *pwi, const char *s, size_t n, mbstate_t *ps)
{
size_t len, len2;