Selaa lähdekoodia

Fix for Xcode 8.

Jeff Kelley 7 vuotta sitten
vanhempi
commit
b32766772d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      AFNetworking/AFURLSessionManager.m

+ 1 - 1
AFNetworking/AFURLSessionManager.m

@@ -148,7 +148,7 @@ typedef void (^AFURLSessionTaskCompletionHandler)(NSURLResponse *response, id re
         progress.pausingHandler = ^{
             [weakTask suspend];
         };
-#if __has_warning("-Wunguarded-availability")
+#if __has_warning("-Wunguarded-availability-new")
         if (@available(iOS 9, macOS 10.11, *)) {
 #else
         if ([progress respondsToSelector:@selector(setResumingHandler:)]) {