mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-11 03:07:10 +08:00
Fix Android not being detected with latest NDK toolchain (#458)
When using the NDK 13b toolchain standalone or with CMake, ANDROID is not defined, but __ANDROID__ is defined instead. (cherry picked from commit bc6af7548b4202f3c188282a6020b8365252af85)
This commit is contained in:
parent
0e5a4422c2
commit
0bed09caaf
@ -2861,7 +2861,7 @@ void BasicWriter<Char>::write_int(T value, Spec spec) {
|
||||
case 'n': {
|
||||
unsigned num_digits = internal::count_digits(abs_value);
|
||||
fmt::StringRef sep = "";
|
||||
#ifndef ANDROID
|
||||
#if !(defined(ANDROID) || defined(__ANDROID__))
|
||||
sep = internal::thousands_sep(std::localeconv());
|
||||
#endif
|
||||
unsigned size = static_cast<unsigned>(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user