From 6cda5dcf4d5cb730ecd521ce9374543ef75f9a64 Mon Sep 17 00:00:00 2001 From: Ilya Samartsev Date: Tue, 25 Oct 2011 11:02:50 +0400 Subject: [PATCH] update version check to make #if work for iOS >= 4 --- SDImageCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDImageCache.m b/SDImageCache.m index 8d836b00..44671b88 100644 --- a/SDImageCache.m +++ b/SDImageCache.m @@ -59,7 +59,7 @@ static SDImageCache *instance; 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) {