mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
Fix compilation error on Android NDK level < 21
This commit is contained in:
parent
8ce34f818a
commit
e9d8f08561
2 changed files with 15 additions and 2 deletions
|
@ -1948,7 +1948,7 @@ class lexer
|
|||
/// return the locale-dependent decimal point
|
||||
static char get_decimal_point() noexcept
|
||||
{
|
||||
const auto loc = localeconv();
|
||||
const auto loc = cpt::localeconv();
|
||||
assert(loc != nullptr);
|
||||
return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point);
|
||||
}
|
||||
|
@ -8247,7 +8247,7 @@ class serializer
|
|||
@param[in] ichar indentation character to use
|
||||
*/
|
||||
serializer(output_adapter_t<char> s, const char ichar)
|
||||
: o(std::move(s)), loc(std::localeconv()),
|
||||
: o(std::move(s)), loc(cpt::localeconv()),
|
||||
thousands_sep(loc->thousands_sep == nullptr ? '\0' : * (loc->thousands_sep)),
|
||||
decimal_point(loc->decimal_point == nullptr ? '\0' : * (loc->decimal_point)),
|
||||
indent_char(ichar), indent_string(512, indent_char)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue