MediaLibraryKit_Prefix.pch 1.97 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
// FIXME
Pierre's avatar
Pierre committed
34 35 36 37 38 39
#define HAVE_BLOCK 0

#define NSXMLDocument CXMLDocument
#define NSXMLNode CXMLNode

#import "TouchXML.h"
40 41

#import <UIKit/UIKit.h>
Jörg Bleyel's avatar
Jörg Bleyel committed
42
#import <MobileVLCKit/MobileVLCKit.h>
43

Pierre's avatar
Pierre committed
44 45
#else
#define HAVE_BLOCK 1
46
#import <VLCKit/VLCKit.h>
Pierre's avatar
Pierre committed
47 48 49
#endif

#import "NSXMLNode_Additions.h"
50
#import "UIImage+MLKit.h"
51 52 53 54 55

#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define APLog(format, ...)
56 57 58 59 60 61 62 63 64
#endif

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

#ifdef __IPHONE_7_0
#define SYSTEM_RUNS_IOS7 SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
#else
#define SYSTEM_RUNS_IOS7 NO
#endif