(apple_compat.h) Define NSUinteger/NSInteger for OSX 10.4 and earlier
This commit is contained in:
parent
757804868b
commit
7ea3da0344
|
@ -24,6 +24,15 @@
|
||||||
#include <AvailabilityMacros.h>
|
#include <AvailabilityMacros.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __OBJC__
|
||||||
|
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
|
||||||
|
typedef int NSInteger;
|
||||||
|
typedef unsigned NSUInteger;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef IOS
|
#ifdef IOS
|
||||||
#ifndef __IPHONE_5_0
|
#ifndef __IPHONE_5_0
|
||||||
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
||||||
|
|
Loading…
Reference in New Issue