From 459595d1061081803564f77ce0d36a13b824ddf7 Mon Sep 17 00:00:00 2001 From: hybrid Date: Tue, 3 Nov 2009 17:05:06 +0000 Subject: [PATCH] Add another define check for better recognition of IPhone targets, as suggested by FuzzYspo0N. git-svn-id: http://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@2788 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/IrrCompileConfig.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/IrrCompileConfig.h b/include/IrrCompileConfig.h index 301ee609..b3860aaf 100644 --- a/include/IrrCompileConfig.h +++ b/include/IrrCompileConfig.h @@ -82,15 +82,18 @@ #if !defined(MACOSX) #define MACOSX // legacy support #endif -#define _IRR_OSX_PLATFORM_ -#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) +#define _IRR_OSX_PLATFORM_ // we only support OSX on these systems + +#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || defined(__IPHONE_OS_VERSION_MIN_REQUIRED) #define _IRR_IPHONE_PLATFORM_ #define _IRR_COMPILE_WITH_IPHONE_DEVICE_ +#define _IRR_COMPILE_WITH_OGLES1_ // necessary for IPhone for now #else #define _IRR_COMPILE_WITH_OSX_DEVICE_ #endif #endif + #if !defined(_IRR_WINDOWS_API_) && !defined(_IRR_OSX_PLATFORM_) #ifndef _IRR_SOLARIS_PLATFORM_ #define _IRR_LINUX_PLATFORM_