Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Adjust SecureTransport import condition to be based on include that's…
Browse files Browse the repository at this point in the history
… already there
  • Loading branch information
Akiva Leffert committed Jun 17, 2013
1 parent 8dc7164 commit 452ca78
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions TCP/TCPConnection.m
Expand Up @@ -6,11 +6,6 @@
// Copyright 2008 Jens Alfke. All rights reserved.
//

// SecureTransport.h is missing on old iPhone versions
#ifdef __IPHONE_5_0
#import <Security/SecureTransport.h>
#endif

#import "TCP_Internal.h"
#import "IPAddress.h"
#import "MYBonjourService.h"
Expand All @@ -19,6 +14,12 @@
#import "Test.h"
#import "ExceptionUtils.h"

// SecureTransport.h is missing on old iPhone versions. Add it if it's available
#import <Availability.h>
#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__) && defined(__IPHONE_5_0)
#import <Security/SecureTransport.h>
#endif


#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__) && !defined(__IPHONE_5_0)
// Since SecureTransport.h is missing on old iPhone versions declare this error explicitly
Expand Down

0 comments on commit 452ca78

Please sign in to comment.