From d6dd6b4288e1e2ef3c7f115aacfb90b52ad64b0d Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Fri, 26 Oct 2018 15:54:30 -0700 Subject: [PATCH] Undefine ERROR in platform_view_layer.cc On Windows the ERROR macro is defined by some headers which breaks the FML_LOG(ERROR). --- flow/layers/platform_view_layer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flow/layers/platform_view_layer.cc b/flow/layers/platform_view_layer.cc index 19057fbfd4b9c..2d4b6d295fe92 100644 --- a/flow/layers/platform_view_layer.cc +++ b/flow/layers/platform_view_layer.cc @@ -4,6 +4,10 @@ #include "flutter/flow/layers/platform_view_layer.h" +#ifdef ERROR +#undef ERROR +#endif + namespace flow { PlatformViewLayer::PlatformViewLayer() = default;