mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Android defines wctomb but doesn't provide it
This commit is contained in:
parent
fb5ba5f09c
commit
277a8edd2e
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue