Fix android build

The OS_FOO macros are set by build/build_config.h, so be sure to
include that before testing the macros.
This commit is contained in:
James Robinson 2015-08-31 10:24:39 -07:00
parent e2b960ecc3
commit 997722db17
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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