Skip to content

Commit 9c7727c

Browse files
authored
[libc++][C++03] remove unused macro in __config (#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.
1 parent 6e65e6a commit 9c7727c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

libcxx/include/__cxx03/__config

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -622,18 +622,6 @@ typedef __char32_t char32_t;
622622
# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION
623623
# endif
624624

625-
// It is not yet possible to use aligned_alloc() on all Apple platforms since
626-
// 10.15 was the first version to ship an implementation of aligned_alloc().
627-
# if defined(__APPLE__)
628-
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
629-
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101500)
630-
# define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
631-
# endif
632-
# elif defined(__ANDROID__) && __ANDROID_API__ < 28
633-
// Android only provides aligned_alloc when targeting API 28 or higher.
634-
# define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
635-
# endif
636-
637625
# if defined(__APPLE__) || defined(__FreeBSD__)
638626
# define _LIBCPP_HAS_DEFAULTRUNELOCALE
639627
# endif

0 commit comments

Comments
 (0)