mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +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
c19a717b67
commit
6797a06652
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-12-22 17:15-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSObject.m: Conditionally compile weak attribute for
|
||||
Windows since it is not supported by the win32 linker.
|
||||
|
||||
2009-12-20 David Chisnall <theraven@gna.org>
|
||||
|
||||
* Source/NSObject.m: Set block superclass.
|
||||
|
|
|
@ -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…
Reference in a new issue