Fix Android not being detected with latest NDK toolchain

When using the NDK 13b toolchain standalone or with CMake, ANDROID is not defined,
but __ANDROID__ is defined instead.
This commit is contained in:
Magnus Bjerke Vik 2017-01-19 20:26:35 +01:00
parent 9e9ad57f58
commit 5c262507c7

View File

@ -2916,7 +2916,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>(