diff --git a/AFNetworking/AFHTTPClient.h b/AFNetworking/AFHTTPClient.h index 1ff60a9..bb631c5 100755 --- a/AFNetworking/AFHTTPClient.h +++ b/AFNetworking/AFHTTPClient.h @@ -72,12 +72,12 @@ */ #ifdef _SYSTEMCONFIGURATION_H -typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) { +typedef enum { AFNetworkReachabilityStatusUnknown = -1, AFNetworkReachabilityStatusNotReachable = 0, 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 @@ -86,11 +86,11 @@ typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) { #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 NS_ENUM(NSInteger, AFHTTPClientParameterEncoding) { +typedef enum { AFFormURLParameterEncoding, AFJSONParameterEncoding, AFPropertyListParameterEncoding, -}; +} AFHTTPClientParameterEncoding; @class AFHTTPRequestOperation; @protocol AFMultipartFormData; diff --git a/AFNetworking/AFHTTPClient.m b/AFNetworking/AFHTTPClient.m index b642ee8..9caeaf4 100755 --- a/AFNetworking/AFHTTPClient.m +++ b/AFNetworking/AFHTTPClient.m @@ -1036,12 +1036,12 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2; #pragma mark - -typedef NS_ENUM(NSInteger, AFHTTPBodyPartReadPhase) { +typedef enum { AFEncapsulationBoundaryPhase = 1, AFHeaderPhase = 2, AFBodyPhase = 3, AFFinalBoundaryPhase = 4, -}; +} AFHTTPBodyPartReadPhase; @interface AFHTTPBodyPart () { AFHTTPBodyPartReadPhase _phase; diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 4ccbc80..9f502f5 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -30,12 +30,12 @@ // You can turn on ARC for only AFNetworking files by adding -fobjc-arc to the build phase for each of its files. #endif -typedef NS_ENUM(NSInteger, _AFOperationState) { +typedef enum { AFOperationPausedState = -1, AFOperationReadyState = 1, AFOperationExecutingState = 2, AFOperationFinishedState = 3, -}; +} _AFOperationState; typedef signed short AFOperationState;