Skip to content

Commit

Permalink
Only include UIKit on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
irace committed Dec 13, 2014
1 parent 3607da0 commit 8439adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TMCache/TMDiskCache.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#import "TMDiskCache.h"

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
#import <UIKit/UIKit.h>
#endif

#define TMDiskCacheError(error) if (error) { NSLog(@"%@ (%d) ERROR: %@", \
[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \
Expand Down
3 changes: 3 additions & 0 deletions TMCache/TMMemoryCache.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#import "TMMemoryCache.h"

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
#import <UIKit/UIKit.h>
#endif

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

Expand Down

0 comments on commit 8439adb

Please sign in to comment.