-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use wrong deployment target guards
use CFMutableDictionary instead of NSMapTable for iOS
- Loading branch information
Showing
7 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
#if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR | ||
|
||
|
||
id MACompoundBackgroundFuture(id (^block)(void)); | ||
id MACompoundLazyFuture(id (^block)(void)); | ||
|
||
#define MACompoundBackgroundFuture(...) ((__typeof((__VA_ARGS__)()))MACompoundBackgroundFuture((id (^)(void))(__VA_ARGS__))) | ||
#define MACompoundLazyFuture(...) ((__typeof((__VA_ARGS__)()))MACompoundLazyFuture((id (^)(void))(__VA_ARGS__))) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR | ||
|
||
@interface MAMethodSignatureCache : NSObject | ||
{ | ||
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED | ||
CFMutableDictionaryRef _cache; | ||
#else | ||
NSMapTable *_cache; | ||
#endif | ||
NSRecursiveLock *_lock; | ||
} | ||
|
||
+ (MAMethodSignatureCache *)sharedCache; | ||
- (NSMethodSignature *)cachedMethodSignatureForSelector: (SEL)sel; | ||
|
||
@end | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters