Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 7a99dd5

Browse files
committed
Only use @import if available. Fixes #107
1 parent 067ef15 commit 7a99dd5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Sources/SSKeychain.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
// Copyright (c) 2010-2014 Sam Soffes. All rights reserved.
77
//
88

9+
#if __has_feature(modules)
10+
@import Foundation;
11+
#else
12+
#import <Foundation/Foundation.h>
13+
#endif
14+
915
#import <SSKeychain/SSKeychainQuery.h>
1016

1117
/**

Sources/SSKeychainQuery.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
// Copyright (c) 2013-2014 Sam Soffes. All rights reserved.
77
//
88

9-
@import Foundation;
10-
@import Security;
9+
#if __has_feature(modules)
10+
@import Foundation;
11+
@import Security;
12+
#else
13+
#import <Foundation/Foundation.h>
14+
#import <Security/Security.h>
15+
#endif
1116

1217
#if __IPHONE_7_0 || __MAC_10_9
1318
// Keychain synchronization available at compile time

0 commit comments

Comments
 (0)