From 7ea3da03441c83230aeeab788bb2d091262c19db Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Mar 2015 18:05:38 +0200 Subject: [PATCH] (apple_compat.h) Define NSUinteger/NSInteger for OSX 10.4 and earlier --- libretro-common/include/compat/apple_compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libretro-common/include/compat/apple_compat.h b/libretro-common/include/compat/apple_compat.h index 8d86ac004f..742a5c2547 100644 --- a/libretro-common/include/compat/apple_compat.h +++ b/libretro-common/include/compat/apple_compat.h @@ -24,6 +24,15 @@ #include #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."