minor mingw32 tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22454 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-10 10:06:28 +00:00
parent 87e0726363
commit ac0b87c2a2
4 changed files with 21 additions and 2 deletions

View file

@ -223,6 +223,7 @@ pathSepMember(unichar c)
inline static unichar
pathSepChar()
{
#if defined(NATIVEPATHSEP)
#if defined(__MINGW32__)
if (GSPathHandlingUnix() == YES)
{
@ -236,11 +237,15 @@ pathSepChar()
}
return '/';
#endif
#else
return '/';
#endif
}
inline static NSString*
pathSepString()
{
#if defined(NATIVEPATHSEP)
#if defined(__MINGW32__)
if (GSPathHandlingUnix() == YES)
{
@ -254,6 +259,9 @@ pathSepString()
}
return @"/";
#endif
#else
return @"/";
#endif
}
/*
@ -4411,6 +4419,7 @@ static NSFileManager *fm = nil;
{
s = AUTORELEASE([self mutableCopy]);
}
#if defined(NATIVEPATHSEP)
#if defined(__MINGW32__)
if (GSPathHandlingUnix() == YES)
{
@ -4429,6 +4438,7 @@ static NSFileManager *fm = nil;
{
[s replaceString: @"\\" withString: @"/"];
}
#endif
#endif
l = [s length];