mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
Android defines wctomb but doesn't provide it
This commit is contained in:
parent
fb5ba5f09c
commit
277a8edd2e
@ -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…
x
Reference in New Issue
Block a user