Browse Source

thumbnail cache: cosmetics

Felix Paul Kühne 10 years ago
parent
commit
3a56775503
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Sources/VLCThumbnailsCache.m

+ 4 - 1
Sources/VLCThumbnailsCache.m

@@ -20,6 +20,9 @@
 #import <WatchKit/WatchKit.h>
 #import <CoreData/CoreData.h>
 #import <MediaLibraryKit/MediaLibraryKit.h>
+#if TARGET_OS_IOS
+#import <UIKit/UIKit.h>
+#endif
 
 @interface VLCThumbnailsCache() {
     NSInteger MaxCacheSize;
@@ -40,7 +43,7 @@
     self = [super init];
     if (self) {
 // TODO: correct for watch
-#ifndef TARGET_OS_WATCH
+#if TARGET_OS_IOS
         _currentDeviceIdiom = [[UIDevice currentDevice] userInterfaceIdiom];
         MaxCacheSize = 0;