mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Make NSGarbageCollector return nil when compiled in GC mode but run in non-GC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0a6a7216ac
commit
f7368f492b
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ void CFRelease(id obj)
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
collector = [self alloc];
|
||||
if (objc_collecting_enabled())
|
||||
{
|
||||
collector = [self alloc];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) collectIfNeeded
|
||||
|
|
Loading…
Reference in a new issue