Android defines wctomb but doesn't provide it

This commit is contained in:
Howard Chu 2011-10-12 19:18:05 -07:00
parent fb5ba5f09c
commit 277a8edd2e

View File

@ -328,6 +328,10 @@ ldap_x_wcs_to_utf8s ( char *utf8str, const wchar_t *wcstr, size_t count )
return (p - utf8str);
}
#ifdef ANDROID
int wctomb(char *s, wchar_t wc) { return wcrtomb(s,wc,NULL); }
int mbtowc(wchar_t *pwc, const char *s, size_t n) { return mbrtowc(pwc, s, n, NULL); }
#endif
/*-----------------------------------------------------------------------------
Convert a UTF-8 character to a MultiByte character.