1*58b9f456SAndroid Build Coastguard Worker //===------------------------ apple_availability.h ------------------------===// 2*58b9f456SAndroid Build Coastguard Worker // 3*58b9f456SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*58b9f456SAndroid Build Coastguard Worker // 5*58b9f456SAndroid Build Coastguard Worker // This file is dual licensed under the MIT and the University of Illinois Open 6*58b9f456SAndroid Build Coastguard Worker // Source Licenses. See LICENSE.TXT for details. 7*58b9f456SAndroid Build Coastguard Worker // 8*58b9f456SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*58b9f456SAndroid Build Coastguard Worker #ifndef _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 10*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 11*58b9f456SAndroid Build Coastguard Worker 12*58b9f456SAndroid Build Coastguard Worker #if defined(__APPLE__) 13*58b9f456SAndroid Build Coastguard Worker 14*58b9f456SAndroid Build Coastguard Worker #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) 15*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101300 16*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_UTIMENSAT 17*58b9f456SAndroid Build Coastguard Worker #endif 18*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) 19*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 110000 20*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_UTIMENSAT 21*58b9f456SAndroid Build Coastguard Worker #endif 22*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) 23*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ >= 110000 24*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_UTIMENSAT 25*58b9f456SAndroid Build Coastguard Worker #endif 26*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) 27*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ >= 40000 28*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_UTIMENSAT 29*58b9f456SAndroid Build Coastguard Worker #endif 30*58b9f456SAndroid Build Coastguard Worker #endif // __ENVIRONMENT_.*_VERSION_MIN_REQUIRED__ 31*58b9f456SAndroid Build Coastguard Worker 32*58b9f456SAndroid Build Coastguard Worker #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) 33*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200 34*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_CLOCK_GETTIME 35*58b9f456SAndroid Build Coastguard Worker #endif 36*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) 37*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 100000 38*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_CLOCK_GETTIME 39*58b9f456SAndroid Build Coastguard Worker #endif 40*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) 41*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ >= 100000 42*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_CLOCK_GETTIME 43*58b9f456SAndroid Build Coastguard Worker #endif 44*58b9f456SAndroid Build Coastguard Worker #elif defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) 45*58b9f456SAndroid Build Coastguard Worker #if __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ >= 30000 46*58b9f456SAndroid Build Coastguard Worker #define _LIBCPP_USE_CLOCK_GETTIME 47*58b9f456SAndroid Build Coastguard Worker #endif 48*58b9f456SAndroid Build Coastguard Worker #endif // __ENVIRONMENT_.*_VERSION_MIN_REQUIRED__ 49*58b9f456SAndroid Build Coastguard Worker 50*58b9f456SAndroid Build Coastguard Worker #endif // __APPLE__ 51*58b9f456SAndroid Build Coastguard Worker 52*58b9f456SAndroid Build Coastguard Worker #endif // _LIBCPP_SRC_INCLUDE_APPLE_AVAILABILITY_H 53