mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34005 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ec37e7fe81
commit
e3588d2fc0
3 changed files with 38 additions and 10 deletions
|
@ -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__) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue