Distinguisging between CoreServices and MobileCoreServices for #warning

This commit is contained in:
Mattt Thompson 2012-11-06 09:13:22 -08:00
parent a495902c65
commit d5bd23ca17

View file

@ -22,6 +22,8 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <Availability.h>
/** /**
`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. `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 #endif
#ifndef __UTTYPE__ #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. #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
#endif
typedef enum { typedef enum {
AFFormURLParameterEncoding, AFFormURLParameterEncoding,