diff --git a/shell/platform/embedder/embedder_surface_gl.cc b/shell/platform/embedder/embedder_surface_gl.cc index 318716962e522..7313ed9d94bec 100644 --- a/shell/platform/embedder/embedder_surface_gl.cc +++ b/shell/platform/embedder/embedder_surface_gl.cc @@ -6,6 +6,10 @@ #include "flutter/shell/common/io_manager.h" +#ifdef ERROR +#undef ERROR +#endif + namespace shell { EmbedderSurfaceGL::EmbedderSurfaceGL(GLDispatchTable gl_dispatch_table, diff --git a/shell/platform/embedder/embedder_surface_software.cc b/shell/platform/embedder/embedder_surface_software.cc index edc855b276116..103257745b359 100644 --- a/shell/platform/embedder/embedder_surface_software.cc +++ b/shell/platform/embedder/embedder_surface_software.cc @@ -7,6 +7,10 @@ #include "flutter/fml/trace_event.h" #include "third_party/skia/include/gpu/GrContext.h" +#ifdef ERROR +#undef ERROR +#endif + namespace shell { EmbedderSurfaceSoftware::EmbedderSurfaceSoftware( diff --git a/shell/platform/embedder/platform_view_embedder.cc b/shell/platform/embedder/platform_view_embedder.cc index 47b83813d974b..07f6c8dc1ff95 100644 --- a/shell/platform/embedder/platform_view_embedder.cc +++ b/shell/platform/embedder/platform_view_embedder.cc @@ -4,6 +4,10 @@ #include "flutter/shell/platform/embedder/platform_view_embedder.h" +#ifdef ERROR +#undef ERROR +#endif + namespace shell { PlatformViewEmbedder::PlatformViewEmbedder(