mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
use define instead of enum, attempt to use constant directly
This commit is contained in:
parent
6e39f11098
commit
64bd75be95
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ typedef NS_ENUM(NSInteger, NSComparisonResult)
|
|||
|
||||
// check for older versions of GCC and try to ignore clang pretending to know GNUC dialects
|
||||
#if defined(__GNUC__) && !defined(__clang__) && GCC_VERSION < 80000
|
||||
enum {NSNotFound = NSIntegerMax};
|
||||
#define NSNotFound NSIntegerMax
|
||||
#else
|
||||
static const NSInteger NSNotFound = NSIntegerMax;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue