Fix detection of iOS for disabling dynamic API.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 22 Jan 2014 12:39:34 -0500
changeset 81211b62b081a83b
parent 8120 c858be546e5a
child 8122 7e01e3908f41
Fix detection of iOS for disabling dynamic API.
src/dynapi/SDL_dynapi.h
     1.1 --- a/src/dynapi/SDL_dynapi.h	Tue Jan 21 16:28:53 2014 -0500
     1.2 +++ b/src/dynapi/SDL_dynapi.h	Wed Jan 22 12:39:34 2014 -0500
     1.3 @@ -39,7 +39,11 @@
     1.4  #error Nope, you have to edit this file to force this off.
     1.5  #endif
     1.6  
     1.7 -#if defined(__APPLE__) && TARGET_OS_IPHONE  /* probably not useful on iOS. */
     1.8 +#ifdef __APPLE__
     1.9 +#include "TargetConditionals.h"
    1.10 +#endif
    1.11 +
    1.12 +#if TARGET_OS_IPHONE  /* probably not useful on iOS. */
    1.13  #define SDL_DYNAMIC_API 0
    1.14  #else   /* everyone else. */
    1.15  #define SDL_DYNAMIC_API 1