mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
OSX 10.5 API fixups for mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28092 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4618dc473
commit
f3788b611e
5 changed files with 8 additions and 8 deletions
|
@ -1355,7 +1355,7 @@ compare(id elem1, id elem2, void* context)
|
|||
|
||||
- (id) valueForKeyPath: (NSString*)path
|
||||
{
|
||||
id result = nil;
|
||||
id result = nil;
|
||||
|
||||
if ([path hasPrefix: @"@"])
|
||||
{
|
||||
|
|
|
@ -3086,7 +3086,7 @@ static NSSet *fileKeys = nil;
|
|||
return [NSDate dateWithTimeIntervalSince1970: statbuf.st_mtime];
|
||||
}
|
||||
|
||||
- (unsigned long) filePosixPermissions
|
||||
- (NSUInteger) filePosixPermissions
|
||||
{
|
||||
return (statbuf.st_mode & ~S_IFMT);
|
||||
}
|
||||
|
@ -3223,12 +3223,12 @@ static NSSet *fileKeys = nil;
|
|||
return statbuf.st_size;
|
||||
}
|
||||
|
||||
- (unsigned long) fileSystemFileNumber
|
||||
- (NSUInteger) fileSystemFileNumber
|
||||
{
|
||||
return statbuf.st_ino;
|
||||
}
|
||||
|
||||
- (unsigned long) fileSystemNumber
|
||||
- (NSUInteger) fileSystemNumber
|
||||
{
|
||||
return statbuf.st_dev;
|
||||
}
|
||||
|
|
|
@ -1034,7 +1034,7 @@ ParseConfigurationFile(NSString *fileName, NSMutableDictionary *dict,
|
|||
fprintf(stderr, "The file '%S' is writable by someone other than"
|
||||
" its owner (permissions 0%lo).\nIgnoring it.\n",
|
||||
[fileName fileSystemRepresentation],
|
||||
[attributes filePosixPermissions]);
|
||||
(long)[attributes filePosixPermissions]);
|
||||
#else
|
||||
fprintf(stderr, "The file '%s' is writable by someone other than"
|
||||
" its owner (permissions 0%lo).\nIgnoring it.\n",
|
||||
|
|
|
@ -1914,7 +1914,7 @@ static IMP _xRefImp; /* Serialize a crossref. */
|
|||
return _version;
|
||||
}
|
||||
|
||||
- (unsigned) versionForClassName: (NSString*)className
|
||||
- (NSInteger) versionForClassName: (NSString*)className
|
||||
{
|
||||
GSClassInfo *info = nil;
|
||||
unsigned version = NSNotFound;
|
||||
|
|
|
@ -93,7 +93,7 @@ static NSString* NotificationKey = @"NSFileHandleNotificationKey";
|
|||
* Encapsulates low level read operation to get data from the operating
|
||||
* system.
|
||||
*/
|
||||
- (int) read: (void*)buf length: (int)len
|
||||
- (NSInteger) read: (void*)buf length: (NSUInteger)len
|
||||
{
|
||||
#if USE_ZLIB
|
||||
if (gzDescriptor != 0)
|
||||
|
@ -133,7 +133,7 @@ static NSString* NotificationKey = @"NSFileHandleNotificationKey";
|
|||
* Encapsulates low level write operation to send data to the operating
|
||||
* system.
|
||||
*/
|
||||
- (int) write: (const void*)buf length: (int)len
|
||||
- (NSInteger) write: (const void*)buf length: (NSUInteger)len
|
||||
{
|
||||
#if USE_ZLIB
|
||||
if (gzDescriptor != 0)
|
||||
|
|
Loading…
Reference in a new issue