1349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 8*bdd1243dSDimitry Andric 90b57cec5SDimitry Andric #ifndef _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 100b57cec5SDimitry Andric #define _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 110b57cec5SDimitry Andric 120b57cec5SDimitry Andric #if defined(__APPLE__) 130b57cec5SDimitry Andric 140b57cec5SDimitry Andric # if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) 155ffd83dbSDimitry Andric # if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500 165ffd83dbSDimitry Andric # define _LIBCPP_USE_ULOCK 170b57cec5SDimitry Andric # endif 180b57cec5SDimitry Andric # elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) 195ffd83dbSDimitry Andric # if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 130000 205ffd83dbSDimitry Andric # define _LIBCPP_USE_ULOCK 210b57cec5SDimitry Andric # endif 220b57cec5SDimitry Andric # elif defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) 235ffd83dbSDimitry Andric # if __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ >= 130000 245ffd83dbSDimitry Andric # define _LIBCPP_USE_ULOCK 250b57cec5SDimitry Andric # endif 260b57cec5SDimitry Andric # elif defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) 275ffd83dbSDimitry Andric # if __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ >= 60000 285ffd83dbSDimitry Andric # define _LIBCPP_USE_ULOCK 290b57cec5SDimitry Andric # endif 300b57cec5SDimitry Andric # endif // __ENVIRONMENT_.*_VERSION_MIN_REQUIRED__ 310b57cec5SDimitry Andric 320b57cec5SDimitry Andric #endif // __APPLE__ 330b57cec5SDimitry Andric 340b57cec5SDimitry Andric #endif // _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 35