Skip to content

Commit 2beb924

Browse files
committed
add watchOS and tvOS checks for aligned_alloc
1 parent d222488 commit 2beb924

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)