Skip to content

Commit

Permalink
Fix detection of iOS for disabling dynamic API.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 22, 2014
1 parent f02ef29 commit ecc0df0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dynapi/SDL_dynapi.h
Expand Up @@ -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
Expand Down

0 comments on commit ecc0df0

Please sign in to comment.