mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Use __MINGW32__ rather than __MINGW__ because gcc does that too.
NB. It seems some recent patches put ___MINGW32__ in the public headers ... that needs to be fixed as the headers should be system independent! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21795 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9ce257fccf
commit
620e39b898
40 changed files with 247 additions and 247 deletions
|
@ -4121,7 +4121,7 @@ static NSFileManager *fm = nil;
|
|||
|
||||
- (NSString*) stringByResolvingSymlinksInPath
|
||||
{
|
||||
#if defined(__MINGW__)
|
||||
#if defined(__MINGW32__)
|
||||
return IMMUTABLE(self);
|
||||
#else
|
||||
#ifndef MAX_PATH
|
||||
|
@ -4284,7 +4284,7 @@ static NSFileManager *fm = nil;
|
|||
}
|
||||
return [[NSFileManager defaultManager]
|
||||
stringWithFileSystemRepresentation: newBuf length: strlen(newBuf)];
|
||||
#endif /* (__MINGW__) */
|
||||
#endif /* (__MINGW32__) */
|
||||
}
|
||||
|
||||
- (NSString*) stringByStandardizingPath
|
||||
|
@ -4377,7 +4377,7 @@ static NSFileManager *fm = nil;
|
|||
* For absolute paths, we must resolve symbolic links or (on MINGW)
|
||||
* remove '/../' sequences and their matching parent directories.
|
||||
*/
|
||||
#if defined(__MINGW__)
|
||||
#if defined(__MINGW32__)
|
||||
/* Condense `/../' */
|
||||
r = (NSRange){root, l-root};
|
||||
while ((r = [s rangeOfString: @"/.." options: 0 range: r]).length == 3)
|
||||
|
@ -4543,7 +4543,7 @@ static NSFileManager *fm = nil;
|
|||
*/
|
||||
if (c == '/')
|
||||
{
|
||||
#if defined(__MINGW__)
|
||||
#if defined(__MINGW32__)
|
||||
if (GSPathHandlingUnix() == YES)
|
||||
{
|
||||
return YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue