ASAvailability.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // ASAvailability.h
  3. // AsyncDisplayKit
  4. //
  5. // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  6. // This source code is licensed under the BSD-style license found in the
  7. // LICENSE file in the root directory of this source tree. An additional grant
  8. // of patent rights can be found in the PATENTS file in the same directory.
  9. //
  10. #import <Availability.h>
  11. #import <AvailabilityInternal.h>
  12. #import <CoreFoundation/CFBase.h>
  13. #ifndef kCFCoreFoundationVersionNumber_IOS_7_0
  14. #define kCFCoreFoundationVersionNumber_IOS_7_0 838.00
  15. #endif
  16. #ifndef kCFCoreFoundationVersionNumber_iOS_7_1
  17. #define kCFCoreFoundationVersionNumber_iOS_7_1 847.24
  18. #endif
  19. #ifndef kCFCoreFoundationVersionNumber_iOS_8_0
  20. #define kCFCoreFoundationVersionNumber_iOS_8_0 1140.1
  21. #endif
  22. #ifndef kCFCoreFoundationVersionNumber_iOS_8_4
  23. #define kCFCoreFoundationVersionNumber_iOS_8_4 1145.15
  24. #endif
  25. #ifndef kCFCoreFoundationVersionNumber_iOS_9_0
  26. #define kCFCoreFoundationVersionNumber_iOS_9_0 1240.10
  27. #endif
  28. #ifndef kCFCoreFoundationVersionNumber_iOS_10_0
  29. #define kCFCoreFoundationVersionNumber_iOS_10_0 1348.00
  30. #endif
  31. #ifndef __IPHONE_7_0
  32. #define __IPHONE_7_0 70000
  33. #endif
  34. #ifndef __IPHONE_8_0
  35. #define __IPHONE_8_0 80000
  36. #endif
  37. #ifndef __IPHONE_9_0
  38. #define __IPHONE_9_0 90000
  39. #endif
  40. #ifndef __IPHONE_10_0
  41. #define __IPHONE_10_0 100000
  42. #endif
  43. #ifndef AS_IOS8_SDK_OR_LATER
  44. #define AS_IOS8_SDK_OR_LATER __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
  45. #endif
  46. #define AS_AT_LEAST_IOS7 (kCFCoreFoundationVersionNumber > kCFCoreFoundationVersionNumber_iOS_6_1)
  47. #define AS_AT_LEAST_IOS7_1 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_7_1)
  48. #define AS_AT_LEAST_IOS8 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0)
  49. #define AS_AT_LEAST_IOS9 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_9_0)
  50. #define AS_AT_LEAST_IOS10 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_10_0)