mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
use kCFCoreFoundationVersionNumber to check for OS >= 4.0
This commit is contained in:
parent
fecfcda433
commit
27571f8777
@ -445,14 +445,9 @@ static int iphone_on (void *transport_config){
|
||||
#else
|
||||
|
||||
// check for os version >= 4.0
|
||||
int os4x = 1;
|
||||
NSAutoreleasePool * pool =[[NSAutoreleasePool alloc] init];
|
||||
NSString * systemVersion = [[UIDevice currentDevice] systemVersion];
|
||||
if ([systemVersion hasPrefix:@"2."]) os4x = 0;
|
||||
if ([systemVersion hasPrefix:@"3."]) os4x = 0;
|
||||
// NSLog(@"OS Version: %@, ox4x = %u", systemVersion, os4x);
|
||||
[pool release];
|
||||
|
||||
int os4x = kCFCoreFoundationVersionNumber >= 550.32;
|
||||
log_dbg("CFVersion %f, >= 4.0 %u\n", kCFCoreFoundationVersionNumber, os4x);
|
||||
|
||||
// OS 4.0
|
||||
char * bluetool = os3xBlueTool;
|
||||
if (os4x) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user