summaryrefslogtreecommitdiffstats
path: root/build/build_config.h
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-02 15:28:13 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-02 15:28:13 +0000
commit9ace11003f1b5c161305cd0081e35e5f69a02088 (patch)
tree98eded7c0d13347c04f69db6ecabbca66933b2fc /build/build_config.h
parent85da4e2e707b7f42d64a3bac0463c647fa575819 (diff)
downloadchromium_src-9ace11003f1b5c161305cd0081e35e5f69a02088.zip
chromium_src-9ace11003f1b5c161305cd0081e35e5f69a02088.tar.gz
chromium_src-9ace11003f1b5c161305cd0081e35e5f69a02088.tar.bz2
Fix OS_IOS definition
TARGET_OS_IOS is always defined, either to 1 or 0, so defined() isn't the right check. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10697053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/build_config.h')
-rw-r--r--build/build_config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/build_config.h b/build/build_config.h
index 08e35b8..1c2c14c 100644
--- a/build/build_config.h
+++ b/build/build_config.h
@@ -21,9 +21,9 @@
// A set of macros to use for platform detection.
#if defined(__APPLE__)
#define OS_MACOSX 1
-#if defined(TARGET_OS_IPHONE)
+#if TARGET_OS_IPHONE
#define OS_IOS 1
-#endif // defined(TARGET_OS_IPHONE)
+#endif // TARGET_OS_IPHONE
#elif defined(ANDROID)
#define OS_ANDROID 1
#elif defined(__native_client__)