Commit 312f1e41 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Added wctomb to port for Android

parent 7b1ff978
......@@ -665,4 +665,5 @@ BCTBX_PUBLIC uint64_t bctbx_str_to_uint64(const uint8_t input_string[17]);
#if defined(__ANDROID__)
int mblen(const char* s, size_t n);
int wctomb(char *s, wchar_t wc);
#endif
......@@ -1730,4 +1730,7 @@ int mblen(const char* s, size_t n) {
mbstate_t state = {};
return (int)mbrlen(s, n, &state);
}
int wctomb(char *s, wchar_t wc) {
return wcrtomb(s,wc,NULL);
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment