diff options
author | Elliott Hughes <enh@google.com> | 2023-10-06 01:17:55 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-06 01:17:55 +0000 |
commit | 90f6213b7d1cf268d055e056d15965ab2812eab3 (patch) | |
tree | 28746f602759123edc975649fc0ab5a4c429ea53 | |
parent | d8fa7da1a70c8803b48a3ef62b6697937ba4bdab (diff) | |
parent | cbd12ac1ef2a652407b78f48a7d10bec77f7540b (diff) | |
download | libcxx-90f6213b7d1cf268d055e056d15965ab2812eab3.tar.gz |
Backport https://reviews.llvm.org/D69983. am: 847f383168 am: 87627e9848 am: cc3cfc848e am: cbd12ac1ef
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2776366
Change-Id: I007b1ad47d7ba1595b20e5bcfd27e342c218e4ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | include/support/android/locale_bionic.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/support/android/locale_bionic.h b/include/support/android/locale_bionic.h index ee209ecb5..1f9c9b040 100644 --- a/include/support/android/locale_bionic.h +++ b/include/support/android/locale_bionic.h @@ -26,14 +26,15 @@ extern "C" { #if defined(__ANDROID__) +#include <android/api-level.h> +#if __ANDROID_API__ < 21 #include <support/xlocale/__posix_l_fallback.h> +#endif // If we do not have this header, we are in a platform build rather than an NDK // build, which will always be at least as new as the ToT NDK, in which case we // don't need any of the inlines below since libc provides them. #if __has_include(<android/ndk-version.h>) - -#include <android/api-level.h> #include <android/ndk-version.h> // In NDK versions later than 16, locale-aware functions are provided by // legacy_stdlib_inlines.h |