(apple_compat.h) Define NSUinteger/NSInteger for OSX 10.4 and earlier

This commit is contained in:
twinaphex 2015-03-30 18:05:38 +02:00
parent 757804868b
commit 7ea3da0344

View File

@ -24,6 +24,15 @@
#include <AvailabilityMacros.h>
#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
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."