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) {