Permalink
Browse files

update version check to make #if work for iOS >= 4

  • Loading branch information...
1 parent 17450bd commit 6cda5dcf4d5cb730ecd521ce9374543ef75f9a64 @unintended unintended committed Oct 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDImageCache.m
View
@@ -59,7 +59,7 @@ - (id)init
name:UIApplicationWillTerminateNotification
object:nil];
-#ifdef __IPHONE_4_0
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
UIDevice *device = [UIDevice currentDevice];
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)
{

0 comments on commit 6cda5dc

Please sign in to comment.