mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
e2b960ecc3
commit
997722db17
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user