File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#import < Foundation/Foundation.h>
10
10
11
+ // NSRegularExpression not available until OS X 10.7 and iOS 4.0 (NS_CLASS_AVAILABLE(10_7, 4_0))
12
+ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
13
+
11
14
/* *
12
15
A subclass of NSDateFormatter that serves as translator between ASP.NET date serializations in JSON
13
16
strings and NSDate objects. This is useful for properly mapping these dates from an ASP.NET driven backend.
76
79
*/
77
80
- (NSString *)stringFromDate : (NSDate *)date ;
78
81
@end
82
+
83
+ #endif
Original file line number Diff line number Diff line change 9
9
#import " RKDotNetDateFormatter.h"
10
10
#import " RestKit.h"
11
11
12
+ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
13
+
12
14
BOOL isValidRange (NSRange rangeOfMatch);
13
15
NSTimeInterval secondsFromMilliseconds (NSTimeInterval millisecs);
14
16
NSTimeInterval millisecondsFromSeconds (NSTimeInterval seconds);
@@ -101,3 +103,4 @@ NSTimeInterval millisecondsFromSeconds(NSTimeInterval seconds) {
101
103
return seconds * 1000 .f ;
102
104
}
103
105
106
+ #endif
You can’t perform that action at this time.
0 commit comments