-
Notifications
You must be signed in to change notification settings - Fork 24
/
LatestChatty2_Prefix.pch
33 lines (30 loc) · 1.48 KB
/
LatestChatty2_Prefix.pch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Prefix header for all source files of the 'LatestChatty2' target in the 'LatestChatty2' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import "HKHelperKit.h"
#import "LatestChatty2AppDelegate.h"
#import "Categories.h"
#import "NSString+Regex.h"
#import <AFNetworking/AFNetworking.h>
#endif
/*
* System Versioning Preprocessor Macros
* Credit: https://gist.github.com/alex-cellcity/998472
*/
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
/*
* Suppress NSLog in non-debug builds
* Requires DEBUG=1 preprocessor macro in LLVM Preprocessing Macros section of build target.
*/
#ifndef DEBUG
#define NSLog(...);
#endif