[libcxx-commits] [PATCH] D69983: [libcxx] Omit unneeded locale fallbacks on Android 21+

Shoaib Meenai via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 7 20:06:50 PST 2019


smeenai created this revision.
smeenai added reviewers: enh, danalbert, EricWF, mclow.lists.
Herald added subscribers: libcxx-commits, ldionne, christof, srhines.
Herald added a project: libc++.

Android API level 21 and above have all these functions available, so we
don't need to include our fallback definitions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69983

Files:
  libcxx/include/support/android/locale_bionic.h


Index: libcxx/include/support/android/locale_bionic.h
===================================================================
--- libcxx/include/support/android/locale_bionic.h
+++ libcxx/include/support/android/locale_bionic.h
@@ -27,7 +27,9 @@
 
 #include <android/api-level.h>
 #include <android/ndk-version.h>
+#if __ANDROID_API__ < 21
 #include <support/xlocale/__posix_l_fallback.h>
+#endif
 // In NDK versions later than 16, locale-aware functions are provided by
 // legacy_stdlib_inlines.h
 #if __NDK_MAJOR__ <= 16


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69983.228356.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191108/984ed78b/attachment.bin>


More information about the libcxx-commits mailing list