From 1b0cf3a3fb7bb21674cf1f63ffd955e40358fc1f Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Fri, 11 Jun 2010 15:14:42 +0200 Subject: [PATCH] Add a compile time condition in order to compile with Base SDK pre iOS4 --- SDImageCache.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDImageCache.m b/SDImageCache.m index d3583f59..666be4fe 100644 --- a/SDImageCache.m +++ b/SDImageCache.m @@ -51,6 +51,7 @@ static SDImageCache *instance; name:UIApplicationWillTerminateNotification object:nil]; + #ifdef __IPHONE_4_0 UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported) { @@ -60,6 +61,7 @@ static SDImageCache *instance; name:UIApplicationDidEnterBackgroundNotification object:nil]; } + #endif } return self;