From 997722db17053c4e09bf7fc61a4be877ef97b93a Mon Sep 17 00:00:00 2001 From: James Robinson Date: Mon, 31 Aug 2015 10:24:39 -0700 Subject: [PATCH] Fix android build The OS_FOO macros are set by build/build_config.h, so be sure to include that before testing the macros. --- ui/gl/egl_util.cc | 2 ++ ui/gl/gl_bindings_egl.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/gl/egl_util.cc b/ui/gl/egl_util.cc index 0c286188289..77e9c59744c 100644 --- a/ui/gl/egl_util.cc +++ b/ui/gl/egl_util.cc @@ -4,6 +4,8 @@ #include "ui/gl/egl_util.h" +#include "build/build_config.h" + #if !defined(OS_ANDROID) #error EGL should only be used on Android. #endif diff --git a/ui/gl/gl_bindings_egl.cc b/ui/gl/gl_bindings_egl.cc index 9dcb46e99e9..0ea21c250ef 100644 --- a/ui/gl/gl_bindings_egl.cc +++ b/ui/gl/gl_bindings_egl.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "build/build_config.h" + #if !defined(OS_ANDROID) #error EGL should only be used on Android. #endif