MediaLibraryKit_Prefix.pch 2.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/*****************************************************************************
 * MobileMediaLibraryKit_Prefix.pch
 * MobileMediaLibraryKit
 *****************************************************************************
 * Copyright (C) 2010 Pierre d'Herbemont
 * Copyright (C) 2010-2013 VLC authors and VideoLAN
 * $Id$
 *
 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
 *
11 12 13
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
14 15 16 17
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
20
 *
21 22 23
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24
 *****************************************************************************/
Pierre's avatar
Pierre committed
25 26 27 28 29

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

30 31
#import <CoreData/CoreData.h>

Pierre's avatar
Pierre committed
32
#if TARGET_OS_IPHONE
33 34 35 36 37

#ifndef __IPHONE_9_0
#error "This project uses features only available in iOS SDK 9.0 and later."
#endif

38
// FIXME
Pierre's avatar
Pierre committed
39 40
#define HAVE_BLOCK 0

41
#import <UIKit/UIKit.h>
Felix Paul Kühne's avatar
Felix Paul Kühne committed
42
#ifndef MLKIT_READONLY_TARGET
43
#if !TARGET_OS_WATCH
Jörg Bleyel's avatar
Jörg Bleyel committed
44
#import <MobileVLCKit/MobileVLCKit.h>
Felix Paul Kühne's avatar
Felix Paul Kühne committed
45
#endif
46
#endif
47

Pierre's avatar
Pierre committed
48 49
#else
#define HAVE_BLOCK 1
50
#import <VLCKit/VLCKit.h>
51 52
#import "NSXMLNode_Additions.h"

Pierre's avatar
Pierre committed
53 54
#endif

55
#import "UIImage+MLKit.h"
56 57 58 59 60

#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define APLog(format, ...)
61 62 63 64
#endif

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

65 66
#define SYSTEM_RUNS_IOS9 SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0")

67 68 69 70 71
#ifdef __IPHONE_7_0
#define SYSTEM_RUNS_IOS7 SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
#else
#define SYSTEM_RUNS_IOS7 NO
#endif