浏览代码

Fix detection of iOS for disabling dynamic API.

Ryan C. Gordon 11 年之前
父节点
当前提交
ecc0df0661
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/dynapi/SDL_dynapi.h

+ 5 - 1
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