git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34005 72102866-910b-0410-8b05-ffd578937521

This commit is contained in:
Richard Frith-MacDonald 2011-10-15 18:36:51 +00:00
parent ec37e7fe81
commit e3588d2fc0
3 changed files with 38 additions and 10 deletions

View file

@ -1,4 +1,23 @@
#import <objc/objc.h>
#if defined (__GNU_LIBOBJC__)
#warning Unable to build NSBlocks for this runtime.
/* FIXME ... these let us link, but blocks will be broken.
*/
void *_NSConcreteStackBlock;
BOOL objc_create_block_classes_as_subclasses_of(Class super)
{
return NO;
}
#else
#import <objc/objc-api.h>
#import "ObjectiveC2/runtime.h"
#import "ObjectiveC2/blocks_runtime.h"
#include <assert.h>
@ -60,3 +79,6 @@ BOOL objc_create_block_classes_as_subclasses_of(Class super)
NEW_CLASS(&_NSBlock, _NSConcreteGlobalBlock);
return YES;
}
#endif /* defined (__GNU_LIBOBJC__) */