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:
David Chisnall 2011-05-28 13:13:42 +00:00
parent 0a6a7216ac
commit f7368f492b

View file

@ -50,7 +50,10 @@ void CFRelease(id obj)
+ (void) initialize
{
collector = [self alloc];
if (objc_collecting_enabled())
{
collector = [self alloc];
}
}
- (void) collectIfNeeded