ASAvailability.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2014-present, Facebook, Inc.
  2. * All rights reserved.
  3. *
  4. * This source code is licensed under the BSD-style license found in the
  5. * LICENSE file in the root directory of this source tree. An additional grant
  6. * of patent rights can be found in the PATENTS file in the same directory.
  7. */
  8. #import <Availability.h>
  9. #import <AvailabilityInternal.h>
  10. #import <CoreFoundation/CFBase.h>
  11. #ifndef kCFCoreFoundationVersionNumber_IOS_7_0
  12. #define kCFCoreFoundationVersionNumber_IOS_7_0 838.00
  13. #endif
  14. #ifndef kCFCoreFoundationVersionNumber_iOS_7_1
  15. #define kCFCoreFoundationVersionNumber_iOS_7_1 847.24
  16. #endif
  17. #ifndef kCFCoreFoundationVersionNumber_iOS_8_0
  18. #define kCFCoreFoundationVersionNumber_iOS_8_0 1140.1
  19. #endif
  20. #ifndef __IPHONE_7_0
  21. #define __IPHONE_7_0 70000
  22. #endif
  23. #ifndef __IPHONE_8_0
  24. #define __IPHONE_8_0 80000
  25. #endif
  26. #ifndef AS_IOS8_SDK_OR_LATER
  27. #define AS_IOS8_SDK_OR_LATER __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
  28. #endif
  29. #define AS_AT_LEAST_IOS7 (kCFCoreFoundationVersionNumber > kCFCoreFoundationVersionNumber_iOS_6_1)
  30. #define AS_AT_LEAST_IOS7_1 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_7_1)
  31. #define AS_AT_LEAST_IOS8 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0)