Adding #warning macros when SystemConfiguration or CoreServices frameworks are missing, causing functionality to be missing or altered

This commit is contained in:
Mattt Thompson 2012-10-05 10:19:25 -07:00
parent a2fc510f72
commit e7c786eee7

View file

@ -78,6 +78,12 @@ typedef enum {
AFNetworkReachabilityStatusReachableViaWWAN = 1,
AFNetworkReachabilityStatusReachableViaWiFi = 2,
} AFNetworkReachabilityStatus;
#else
#warning "SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available."
#endif
#ifndef __UTTYPE__
#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
typedef enum {