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:
parent
1387ea9f98
commit
1fc35f30bd
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue