VLC for iOS-Prefix.pch 849 Bytes
Newer Older
Felix Paul Kühne's avatar
Felix Paul Kühne committed
1
//
2
// Prefix header for all source files of the 'vlc-ios' target in the 'VLC for iOS' project
Felix Paul Kühne's avatar
Felix Paul Kühne committed
3
4
5
6
7
8
9
10
11
12
13
14
//

#import <Availability.h>

#ifndef __IPHONE_4_0
#warning "This project uses features only available in iOS SDK 4.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif
15

16
17
18
#import <MobileVLCKit/MobileVLCKit.h>
#import <MediaLibraryKit/MediaLibraryKit.h>

19
20
#import "VLCConstants.h"

21
22
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

23
#ifdef __IPHONE_7_0
Felix Paul Kühne's avatar
Felix Paul Kühne committed
24
#define SYSTEM_RUNS_IOS7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
25
#else
Felix Paul Kühne's avatar
Felix Paul Kühne committed
26
#define SYSTEM_RUNS_IOS7_OR_LATER NO
27
#endif
28

29
30
31
32
33
#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define APLog(format, ...)
#endif