Skip to content

Commit

Permalink
Ensure that Foundation.framework is imported before checking `NS_BLOC…
Browse files Browse the repository at this point in the history
…KS_AVAILABLE`

Fixes #786
  • Loading branch information
tonyarnold committed Jul 3, 2014
1 parent e08d526 commit d18e74f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions MagicalRecord/CoreData+MagicalRecord.h
@@ -1,13 +1,19 @@

//
#ifndef NS_BLOCKS_AVAILABLE // CoreData+MagicalRecord.h
#warning MagicalRecord requires blocks //
#endif // Created by Saul Mora on 28/07/10.
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
//


#ifdef __OBJC__ #ifdef __OBJC__


#import <CoreFoundation/CoreFoundation.h> #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h> #import <CoreData/CoreData.h>


#ifndef NS_BLOCKS_AVAILABLE
#warning MagicalRecord requires blocks
#endif

#ifdef MR_SHORTHAND #ifdef MR_SHORTHAND
#import "MagicalRecordShorthand.h" #import "MagicalRecordShorthand.h"
#endif #endif
Expand Down

0 comments on commit d18e74f

Please sign in to comment.