Skip to content

Commit

Permalink
Fix Android not being detected with latest NDK toolchain (#458)
Browse files Browse the repository at this point in the history
When using the NDK 13b toolchain standalone or with CMake, ANDROID is not defined,
but __ANDROID__ is defined instead.
  • Loading branch information
Gachapen authored and foonathan committed Jan 20, 2017
1 parent 6766270 commit bc6af75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,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>(
Expand Down

0 comments on commit bc6af75

Please sign in to comment.