-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBLMacros.h
More file actions
16 lines (12 loc) · 875 Bytes
/
BLMacros.h
File metadata and controls
16 lines (12 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
// BLMacros.h
// WCE
//
// Created by Brian Beckerle on 3/14/14.
//
#import <Foundation/Foundation.h>
#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)