mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
OSX compatibility tweaks ... NSNotFound defined as NSIntegerMax
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bbcbe38efb
commit
016c110ec8
3 changed files with 20 additions and 13 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-12-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSObject.h:
|
||||
* Headers/Foundation/NSObjCRuntime.h:
|
||||
Move a few declarations between headers to match OSX, and update
|
||||
NSNotFound to be NSIntegerMax for compatibility on 64bit platforms.
|
||||
|
||||
2011-12-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* SSL/GSSSLHandle.m: Allow cipher list to be set using GSCipherList
|
||||
|
|
|
@ -133,6 +133,19 @@ GS_EXPORT void NSLogv (NSString *format, va_list args);
|
|||
#define nil 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Contains values <code>NSOrderedSame</code>, <code>NSOrderedAscending</code>
|
||||
* <code>NSOrderedDescending</code>, for left hand side equals, less than, or
|
||||
* greater than right hand side.
|
||||
*/
|
||||
typedef enum _NSComparisonResult
|
||||
{
|
||||
NSOrderedAscending = -1, NSOrderedSame, NSOrderedDescending
|
||||
}
|
||||
NSComparisonResult;
|
||||
|
||||
enum {NSNotFound = NSIntegerMax};
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -482,19 +482,6 @@ NSExtraRefCount(id anObject);
|
|||
GS_EXPORT void
|
||||
NSIncrementExtraRefCount(id anObject);
|
||||
|
||||
/**
|
||||
* Contains values <code>NSOrderedSame</code>, <code>NSOrderedAscending</code>
|
||||
* <code>NSOrderedDescending</code>, for left hand side equals, less than, or
|
||||
* greater than right hand side.
|
||||
*/
|
||||
typedef enum _NSComparisonResult
|
||||
{
|
||||
NSOrderedAscending = -1, NSOrderedSame, NSOrderedDescending
|
||||
}
|
||||
NSComparisonResult;
|
||||
|
||||
enum {NSNotFound = 0x7fffffff};
|
||||
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
|
||||
/** Global lock to be used by classes when operating on any global
|
||||
|
|
Loading…
Reference in a new issue