Permalink
Browse files

Fixed: code does not compile on OS X due to use of unguarded iOS func…

…tions etc.
  • Loading branch information...
1 parent fae477a commit f47eb5a9a2f9772e639a6efb33d1afd913d9bc2c @mmower mmower committed Mar 7, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 MAFuture.h
  2. +4 −0 MAFuture.m
View
@@ -6,6 +6,8 @@ id MALazyFuture(id (^block)(void));
#define MALazyFuture(...) ((__typeof((__VA_ARGS__)()))MALazyFuture((id (^)(void))(__VA_ARGS__)))
+#if TARGET_OS_IPHONE > 0
+
#ifdef __IPHONE_4_0
#pragma mark -
@@ -30,3 +32,5 @@ id IKAutoArchivingMemoryAwareFutureCreate(id (^block)(void));
#define IKAutoArchivingMemoryAwareFutureCreate(...)((__typeof((__VA_ARGS__)()))IKAutoArchivingMemoryAwareFutureCreate((id (^)(void))(__VA_ARGS__)))
#endif // __IPHONE_4_0
+
+#endif
View
@@ -121,6 +121,8 @@ id MALazyFuture(id (^block)(void))
#pragma mark -
#pragma mark iOS Futures
+#if TARGET_OS_IPHONE > 0
+
#ifdef __IPHONE_4_0
@implementation _IKMemoryAwareFuture
@@ -374,3 +376,5 @@ id IKAutoArchivingMemoryAwareFuture(id (^block)(void)) {
}
#endif // __IPHONE_4_0
+
+#endif

0 comments on commit f47eb5a

Please sign in to comment.