Mingw update

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-06-12 05:17:41 +00:00
parent 984e5973ff
commit 7066b8e47f
24 changed files with 155 additions and 577 deletions

View file

@ -115,7 +115,7 @@ NSHomeDirectory(void)
NSString *
NSHomeDirectoryForUser(NSString *login_name)
{
#if !defined(__WIN32__)
#if !defined(__MINGW__)
struct passwd *pw;
[gnustep_global_lock lock];
@ -140,12 +140,14 @@ NSHomeDirectoryForUser(NSString *login_name)
s = [NSString stringWithCString: nb];
NSZoneFree(NSDefaultMallocZone(), nb);
}
else
else if (n > 0)
{
/* null terminate it and return the string */
buf[n] = '\0';
s = [NSString stringWithCString: buf];
}
else
s = NSOpenStepRootDirectory();
[gnustep_global_lock unlock];
return s;
#endif
@ -289,7 +291,7 @@ NSOpenStepRootDirectory(void)
objectForKey: @"GNUSTEP_ROOT"];
if (root == nil)
#if defined(__WIN32__)
#if defined(__MINGW__)
root = @"C:\\";
#else
root = @"/";