[libcxx-commits] [PATCH] D141184: [libc++] Fix aligned_alloc usage for Android

Shoaib Meenai via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 10 06:26:04 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG49c8f903efea: [libc++] Fix aligned_alloc usage for Android (authored by smeenai).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141184/new/

https://reviews.llvm.org/D141184

Files:
  libcxx/include/__config


Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -741,6 +741,9 @@
          __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101500)
 #      define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
 #    endif
+#  elif defined(__ANDROID__) && __ANDROID_API__ < 28
+// Android only provides aligned_alloc when targeting API 28 or higher.
+#    define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
 #  endif
 
 #  if defined(__APPLE__) || defined(__FreeBSD__)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141184.487777.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230110/72ea69b9/attachment.bin>


More information about the libcxx-commits mailing list