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."