Permalink
Browse files

Support built on iOS4. Check for the support of objc_arc_weak to deci…

…de use weak or unsafe_unretained
  • Loading branch information...
1 parent f7129a7 commit 1722ad440133560f37d4a8920a02d112c7b859c9 @kureikain kureikain committed Jul 5, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Core/Mime/MultipartFormDataParser.h
@@ -55,7 +55,11 @@ NSMutableData* pendingData;
- (id) initWithBoundary:(NSString*) boundary formEncoding:(NSStringEncoding) formEncoding;
-@property(weak, readwrite) id delegate;
+#if __has_feature(objc_arc_weak)
+ @property(weak, readwrite) id delegate;
+#else
+ @property(unsafe_unretained, readwrite) id delegate;
+#endif
@property(readwrite) NSStringEncoding formEncoding;
@end

0 comments on commit 1722ad4

Please sign in to comment.