Revert "Using NS_ENUM in place of typedef enum"
This reverts commit ae1d419cd4.
This commit is contained in:
parent
ae1d419cd4
commit
ddf43e1122
3 changed files with 8 additions and 8 deletions
|
|
@ -72,12 +72,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _SYSTEMCONFIGURATION_H
|
#ifdef _SYSTEMCONFIGURATION_H
|
||||||
typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {
|
typedef enum {
|
||||||
AFNetworkReachabilityStatusUnknown = -1,
|
AFNetworkReachabilityStatusUnknown = -1,
|
||||||
AFNetworkReachabilityStatusNotReachable = 0,
|
AFNetworkReachabilityStatusNotReachable = 0,
|
||||||
AFNetworkReachabilityStatusReachableViaWWAN = 1,
|
AFNetworkReachabilityStatusReachableViaWWAN = 1,
|
||||||
AFNetworkReachabilityStatusReachableViaWiFi = 2,
|
AFNetworkReachabilityStatusReachableViaWiFi = 2,
|
||||||
};
|
} AFNetworkReachabilityStatus;
|
||||||
#else
|
#else
|
||||||
#warning "SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available."
|
#warning "SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available."
|
||||||
#endif
|
#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."
|
#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 NS_ENUM(NSInteger, AFHTTPClientParameterEncoding) {
|
typedef enum {
|
||||||
AFFormURLParameterEncoding,
|
AFFormURLParameterEncoding,
|
||||||
AFJSONParameterEncoding,
|
AFJSONParameterEncoding,
|
||||||
AFPropertyListParameterEncoding,
|
AFPropertyListParameterEncoding,
|
||||||
};
|
} AFHTTPClientParameterEncoding;
|
||||||
|
|
||||||
@class AFHTTPRequestOperation;
|
@class AFHTTPRequestOperation;
|
||||||
@protocol AFMultipartFormData;
|
@protocol AFMultipartFormData;
|
||||||
|
|
|
||||||
|
|
@ -1036,12 +1036,12 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
typedef NS_ENUM(NSInteger, AFHTTPBodyPartReadPhase) {
|
typedef enum {
|
||||||
AFEncapsulationBoundaryPhase = 1,
|
AFEncapsulationBoundaryPhase = 1,
|
||||||
AFHeaderPhase = 2,
|
AFHeaderPhase = 2,
|
||||||
AFBodyPhase = 3,
|
AFBodyPhase = 3,
|
||||||
AFFinalBoundaryPhase = 4,
|
AFFinalBoundaryPhase = 4,
|
||||||
};
|
} AFHTTPBodyPartReadPhase;
|
||||||
|
|
||||||
@interface AFHTTPBodyPart () {
|
@interface AFHTTPBodyPart () {
|
||||||
AFHTTPBodyPartReadPhase _phase;
|
AFHTTPBodyPartReadPhase _phase;
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// You can turn on ARC for only AFNetworking files by adding -fobjc-arc to the build phase for each of its files.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef NS_ENUM(NSInteger, _AFOperationState) {
|
typedef enum {
|
||||||
AFOperationPausedState = -1,
|
AFOperationPausedState = -1,
|
||||||
AFOperationReadyState = 1,
|
AFOperationReadyState = 1,
|
||||||
AFOperationExecutingState = 2,
|
AFOperationExecutingState = 2,
|
||||||
AFOperationFinishedState = 3,
|
AFOperationFinishedState = 3,
|
||||||
};
|
} _AFOperationState;
|
||||||
|
|
||||||
typedef signed short AFOperationState;
|
typedef signed short AFOperationState;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue