use define instead of enum, attempt to use constant directly

This commit is contained in:
Riccardo Mottola 2025-04-03 14:37:13 +02:00
parent 6e39f11098
commit 64bd75be95

View file

@ -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