From d5bd23ca17034d8aefd6a5f146b56a0311cf8c0d Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 6 Nov 2012 09:13:22 -0800 Subject: [PATCH] Distinguisging between CoreServices and MobileCoreServices for #warning --- AFNetworking/AFHTTPClient.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AFNetworking/AFHTTPClient.h b/AFNetworking/AFHTTPClient.h index 7ef1f1f..de6ec80 100644 --- a/AFNetworking/AFHTTPClient.h +++ b/AFNetworking/AFHTTPClient.h @@ -22,6 +22,8 @@ #import +#import + /** `AFHTTPClient` captures the common patterns of communicating with an web application over HTTP. It encapsulates information like base URL, authorization credentials, and HTTP headers, and uses them to construct and manage the execution of HTTP request operations. @@ -83,8 +85,12 @@ typedef enum { #endif #ifndef __UTTYPE__ +#if __IPHONE_OS_VERSION_MIN_REQUIRED +#warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. +#else #warning CoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. #endif +#endif typedef enum { AFFormURLParameterEncoding,