mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
87e0726363
commit
ac0b87c2a2
4 changed files with 21 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue