mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add code using getenv to show #rfm the current failure
This commit is contained in:
parent
881a77bd3d
commit
05dd8a4c2a
1 changed files with 3 additions and 2 deletions
|
@ -36,13 +36,14 @@
|
|||
#import "GSPrivate.h"
|
||||
#import "GSPThread.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#import "common.h"
|
||||
|
||||
#import "Foundation/NSLock.h"
|
||||
#import "Foundation/NSException.h"
|
||||
#import "Foundation/NSThread.h"
|
||||
#import "Foundation/NSUserDefaults.h"
|
||||
// #import "Foundation/NSUserDefaults.h"
|
||||
|
||||
#define class_createInstance(C,E) NSAllocateObject(C,E,NSDefaultMallocZone())
|
||||
|
||||
|
@ -348,7 +349,7 @@ NSString *NSLockException = @"NSLockException";
|
|||
untracedConditionLockClass = [GSUntracedConditionLock class];
|
||||
untracedLockClass = [GSUntracedLock class];
|
||||
untracedRecursiveLockClass = [GSUntracedRecursiveLock class];
|
||||
compatible = [[NSUserDefaults standardUserDefaults] boolForKey: @"GSMacOSXCompatible"];
|
||||
compatible = (strcmp(getenv("NSLOCK_COMPATIBLE"), "YES") == 0) ? YES : NO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue