mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3475 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
576013dd75
commit
4e46a29786
1 changed files with 7 additions and 2 deletions
|
@ -164,11 +164,16 @@ NSString *NSTemporaryDirectory(void)
|
|||
|
||||
NSString *NSOpenStepRootDirectory(void)
|
||||
{
|
||||
NSString* root = [[[NSProcessInfo processInfo] environment]
|
||||
objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
|
||||
|
||||
if (!root)
|
||||
#ifdef WIN32
|
||||
return @"C:\\";
|
||||
root = @"C:\\";
|
||||
#else
|
||||
return @"/";
|
||||
root = @"/";
|
||||
#endif
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue