Commit 1fb0586b authored by Victor Zverovich's avatar Victor Zverovich Committed by GitHub

Merge pull request #381 from hghwng/master

Fix compilation on Android.
parents 0d25f6fc 5f26b5da
......@@ -2812,7 +2812,10 @@ void BasicWriter<Char>::write_int(T value, Spec spec) {
}
case 'n': {
unsigned num_digits = internal::count_digits(abs_value);
fmt::StringRef sep = internal::thousands_sep(std::localeconv());
fmt::StringRef sep = "";
#ifndef ANDROID
sep = internal::thousands_sep(std::localeconv());
#endif
unsigned size = static_cast<unsigned>(
num_digits + sep.size() * ((num_digits - 1) / 3));
CharPtr p = prepare_int_buffer(size, spec, prefix, prefix_size) + 1;
......
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