Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Only use "weak" if it's supported by the compiler. #79

Merged
merged 1 commit into from

2 participants

@fernandonf

Fixes compilation for deployment target < iOS 5 (issue #72).

@fernandonf fernandonf Only use "weak" if it's supported by the compiler.
Fixes compilation for deployment target < iOS 5.
01c914a
@arashpayan arashpayan merged commit ec21318 into arashpayan:master
@arashpayan
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 29, 2012
  1. @fernandonf

    Only use "weak" if it's supported by the compiler.

    fernandonf authored
    Fixes compilation for deployment target < iOS 5.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 Appirater.h
View
4 Appirater.h
@@ -90,7 +90,11 @@ extern NSString *const kAppiraterReminderRequestDate;
}
@property(nonatomic, strong) UIAlertView *ratingAlert;
+#if __has_feature(objc_arc_weak)
@property(nonatomic, weak) NSObject <AppiraterDelegate> *delegate;
+#else
+@property(nonatomic, unsafe_unreferenced) NSObject <AppiraterDelegate> *delegate;
+#endif
/*
Tells Appirater that the app has launched, and on devices that do NOT
Something went wrong with that request. Please try again.