mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/NSFileManager.m (-createFileAtPath:...): Define var at
beginning to work on gcc 2.x compilers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20838 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26633b348b
commit
5c03d02192
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-03-03 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSFileManager.m (-createFileAtPath:...): Define var at
|
||||
beginning to work on gcc 2.x compilers.
|
||||
|
||||
2005-03-03 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Start on integrating Sheldon Gills NSPathUtilities patches.
|
||||
|
|
|
@ -780,6 +780,7 @@ static NSFileManager* defaultManager = nil;
|
|||
DWORD written = 0;
|
||||
DWORD len = [contents length];
|
||||
#else
|
||||
const char *lpath;
|
||||
int fd;
|
||||
int len;
|
||||
int written;
|
||||
|
@ -811,7 +812,7 @@ static NSFileManager* defaultManager = nil;
|
|||
return YES;
|
||||
}
|
||||
#else
|
||||
const char *lpath = [self fileSystemRepresentationWithPath: path];
|
||||
lpath = [self fileSystemRepresentationWithPath: path];
|
||||
|
||||
fd = open(lpath, GSBINIO|O_WRONLY|O_TRUNC|O_CREAT, 0644);
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Reference in a new issue