From ecc0df066183d579d1a1f8b75e30d98860033230 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 22 Jan 2014 12:39:34 -0500 Subject: [PATCH] Fix detection of iOS for disabling dynamic API. --- src/dynapi/SDL_dynapi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dynapi/SDL_dynapi.h b/src/dynapi/SDL_dynapi.h index eb1c01440..9801ba1c3 100644 --- a/src/dynapi/SDL_dynapi.h +++ b/src/dynapi/SDL_dynapi.h @@ -39,7 +39,11 @@ #error Nope, you have to edit this file to force this off. #endif -#if defined(__APPLE__) && TARGET_OS_IPHONE /* probably not useful on iOS. */ +#ifdef __APPLE__ +#include "TargetConditionals.h" +#endif + +#if TARGET_OS_IPHONE /* probably not useful on iOS. */ #define SDL_DYNAMIC_API 0 #else /* everyone else. */ #define SDL_DYNAMIC_API 1