mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-13 23:20:04 +08:00
Fix compilation on Android.
(cherry picked from commit 5f26b5da2871cc5f562231af9d2062fb18df1ca5)
This commit is contained in:
parent
79100a21bc
commit
f8289ba1da
@ -2790,7 +2790,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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user