Index: build/build_config.h |
diff --git a/build/build_config.h b/build/build_config.h |
index b48db72743d612bf2894e6a605f533f8d71379b1..553484605a857baa66d252ba5df4286ce89b53c7 100644 |
--- a/build/build_config.h |
+++ b/build/build_config.h |
@@ -14,10 +14,6 @@ |
#ifndef BUILD_BUILD_CONFIG_H_ |
#define BUILD_BUILD_CONFIG_H_ |
-#if defined(__APPLE__) |
-#include <TargetConditionals.h> |
-#endif |
- |
// A set of macros to use for platform detection. |
#if defined(__native_client__) |
// __native_client__ must be first, so that other OS_ defines are not set. |
@@ -25,6 +21,10 @@ |
#elif defined(ANDROID) |
#define OS_ANDROID 1 |
#elif defined(__APPLE__) |
+// only include TargetConditions after testing ANDROID as some android builds |
+// on mac don't have this header available and it's not needed unless the target |
+// is really mac/ios. |
+#include <TargetConditionals.h> |
#define OS_MACOSX 1 |
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE |
#define OS_IOS 1 |