Skip to content
Snippets Groups Projects
Commit 277a8edd authored by Howard Chu's avatar Howard Chu
Browse files

Android defines wctomb but doesn't provide it

parent fb5ba5f0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment