Skip to content

Commit 8439adb

Browse files
committed
Only include UIKit on iOS
1 parent 3607da0 commit 8439adb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

TMCache/TMDiskCache.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#import "TMDiskCache.h"
2+
3+
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
24
#import <UIKit/UIKit.h>
5+
#endif
36

47
#define TMDiskCacheError(error) if (error) { NSLog(@"%@ (%d) ERROR: %@", \
58
[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \

TMCache/TMMemoryCache.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#import "TMMemoryCache.h"
2+
3+
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
24
#import <UIKit/UIKit.h>
5+
#endif
36

47
NSString * const TMMemoryCachePrefix = @"com.tumblr.TMMemoryCache";
58

0 commit comments

Comments
 (0)