Tidied win32 stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-05-11 09:21:38 +00:00
parent e45bba803d
commit a1aa99475c
16 changed files with 104 additions and 51 deletions

View file

@ -124,7 +124,11 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len, NSZone* zone)
NSLog(@"Open (%s) attempt failed - bad path", thePath);
return NO;
}
#if defined(__WIN32__)
theFile = fopen(thePath, "rb");
#else
theFile = fopen(thePath, "r");
#endif
if (theFile == NULL) /* We failed to open the file. */
{
@ -522,7 +526,11 @@ failure:
else
{
strcpy(thePath, theRealPath);
#if defined(__WIN32__)
theFile = fopen(thePath, "wb");
#else
theFile = fopen(thePath, "w");
#endif
}
#else
if (useAuxiliaryFile)
@ -544,7 +552,11 @@ failure:
}
/* Open the file (whether temp or real) for writing. */
#if defined(__WIN32__)
theFile = fopen(thePath, "wb");
#else
theFile = fopen(thePath, "w");
#endif
#endif
if (theFile == NULL) /* Something went wrong; we weren't