Skip to content

Commit 949e404

Browse files
authored
[libc++] Add watchOS and tvOS checks for aligned_alloc (#126862)
Adds the equivalent watchOS and tvOS version checks to check for support for aligned_alloc, we already have macOS and iOS checks.
1 parent 9c49b18 commit 949e404

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/include/__config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,10 @@ typedef __char32_t char32_t;
663663
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
664664
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101500) || \
665665
(defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && \
666-
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 130000)
666+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 130000) || \
667+
(defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && \
668+
__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 60000) || \
669+
(defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 130000)
667670
# define _LIBCPP_HAS_C11_ALIGNED_ALLOC 0
668671
# else
669672
# define _LIBCPP_HAS_C11_ALIGNED_ALLOC 1

0 commit comments

Comments
 (0)