From 14bbfe6f385b19e6b491130e127914cbd548de92 Mon Sep 17 00:00:00 2001 From: ricky Date: Mon, 16 May 2016 17:05:17 -0700 Subject: [PATCH] [ASAvailability.h] Add kCFCoreFoundationVersionNumber_iOS_9_0 define My implementation of AS_AT_LEAST_IOS9 broke when 8.4.1 was released. I ran the iOS 9.0 simulator to find the proper `kCFCoreFoundationVersionNumber` value for iOS9, added this as `kCFCoreFoundationVersionNumber_iOS_9_0` and updated the `AS_AT_LEAST_IOS9` macro --- Base/ASAvailability.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Base/ASAvailability.h b/Base/ASAvailability.h index 65fe04d647..fef62f6701 100644 --- a/Base/ASAvailability.h +++ b/Base/ASAvailability.h @@ -27,6 +27,10 @@ #define kCFCoreFoundationVersionNumber_iOS_8_4 1145.15 #endif +#ifndef kCFCoreFoundationVersionNumber_iOS_9_0 +#define kCFCoreFoundationVersionNumber_iOS_9_0 1240.10 +#endif + #ifndef __IPHONE_7_0 #define __IPHONE_7_0 70000 #endif @@ -46,4 +50,4 @@ #define AS_AT_LEAST_IOS7 (kCFCoreFoundationVersionNumber > kCFCoreFoundationVersionNumber_iOS_6_1) #define AS_AT_LEAST_IOS7_1 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_7_1) #define AS_AT_LEAST_IOS8 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0) -#define AS_AT_LEAST_IOS9 (kCFCoreFoundationVersionNumber > kCFCoreFoundationVersionNumber_iOS_8_4) +#define AS_AT_LEAST_IOS9 (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_9_0)