[libcxx-commits] [libcxx] remove unused macro in c++03 header (PR #156609)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 3 00:24:55 PDT 2025
https://github.com/Un1q32 created https://github.com/llvm/llvm-project/pull/156609
The only place this macro was used was in `__memory/aligned_alloc.h`, but the code that used this macro also checked for C++17 so it was removed, now this macro is never used.
>From df2b7e385d3b41da3295a089ba34d0f80c7cb60c Mon Sep 17 00:00:00 2001
From: Un1q32 <joey.t.reinhart at gmail.com>
Date: Wed, 3 Sep 2025 03:18:14 -0400
Subject: [PATCH] remove unused macro in c++03 header
---
libcxx/include/__cxx03/__config | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/libcxx/include/__cxx03/__config b/libcxx/include/__cxx03/__config
index 9b88a495055ee..d574eab8a12b1 100644
--- a/libcxx/include/__cxx03/__config
+++ b/libcxx/include/__cxx03/__config
@@ -622,18 +622,6 @@ typedef __char32_t char32_t;
# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION
# endif
-// It is not yet possible to use aligned_alloc() on all Apple platforms since
-// 10.15 was the first version to ship an implementation of aligned_alloc().
-# if defined(__APPLE__)
-# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
- __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__)
# define _LIBCPP_HAS_DEFAULTRUNELOCALE
# endif
More information about the libcxx-commits
mailing list