Permalink
Browse files

Ensure that Foundation.framework is imported before checking `NS_BLOC…

…KS_AVAILABLE`


Fixes #786
  • Loading branch information...
1 parent e08d526 commit d18e74fe435359238b9593c03e41c1ee0baa0b78 @tonyarnold tonyarnold committed Jul 3, 2014
Showing with 11 additions and 5 deletions.
  1. +11 −5 MagicalRecord/CoreData+MagicalRecord.h
@@ -1,13 +1,19 @@
-
-#ifndef NS_BLOCKS_AVAILABLE
- #warning MagicalRecord requires blocks
-#endif
+//
+// CoreData+MagicalRecord.h
+//
+// Created by Saul Mora on 28/07/10.
+// Copyright 2010 Magical Panda Software, LLC All rights reserved.
+//
#ifdef __OBJC__
- #import <CoreFoundation/CoreFoundation.h>
+ #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
+ #ifndef NS_BLOCKS_AVAILABLE
+ #warning MagicalRecord requires blocks
+ #endif
+
#ifdef MR_SHORTHAND
#import "MagicalRecordShorthand.h"
#endif

0 comments on commit d18e74f

Please sign in to comment.