瀏覽代碼

thumbnail cache: cosmetics

Felix Paul Kühne 10 年之前
父節點
當前提交
3a56775503
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;