mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Conditionally compile weak attribute.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29159 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fffe50ffdc
commit
e66625cfdf
2 changed files with 9 additions and 0 deletions
|
@ -896,15 +896,19 @@ GSGarbageCollectorLog(char *msg, GC_word arg)
|
|||
* Semi-private function in libobjc2 that initialises the classes used for
|
||||
* blocks.
|
||||
*/
|
||||
#ifndef __MINGW32__
|
||||
BOOL
|
||||
objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
||||
#endif
|
||||
|
||||
+ (void)load
|
||||
{
|
||||
#ifndef __MINGW32__
|
||||
/* When NSObject is loaded, register it as the superclass of the block
|
||||
* classes */
|
||||
if (objc_create_block_classes_as_subclasses_of)
|
||||
objc_create_block_classes_as_subclasses_of(self);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue