Fix incorrect macro

This commit is contained in:
Sergey Abramchuk 2017-06-22 20:55:34 +03:00
parent 76413feea7
commit 6d2de5cb4e

View File

@ -599,7 +599,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
protocol = CFSwapInt32BigToHost(protocol); protocol = CFSwapInt32BigToHost(protocol);
NSData *packet = [data subdataWithRange:NSMakeRange(prefixSize, data.length - prefixSize)]; NSData *packet = [data subdataWithRange:NSMakeRange(prefixSize, data.length - prefixSize)];
#elif TARGET_OS_MAC #else
// Get network protocol from header // Get network protocol from header
uint8_t header = 0; uint8_t header = 0;
[data getBytes:&header length:1]; [data getBytes:&header length:1];