Work around Fuchsia a11y / ICU name conflict (flutter/engine#13885)

ICU #defines TRUE and FALSE but these are used as enum member name by
the Fuchsia i18n FIDL library. This #undefs TRUE and FALSE before
including the generated FIDL header.

Fixes https://github.com/flutter/flutter/issues/44817
This commit is contained in:
Ian McKellar
2019-11-15 21:16:44 -08:00
committed by GitHub
parent 44df505aec
commit 6f8724c59e

View File

@@ -5,6 +5,10 @@
#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_ACCESSIBILITY_BRIDGE_H_
#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_ACCESSIBILITY_BRIDGE_H_
// Work around symbol conflicts with ICU.
#undef TRUE
#undef FALSE
#include <fuchsia/accessibility/semantics/cpp/fidl.h>
#include <fuchsia/sys/cpp/fidl.h>
#include <fuchsia/ui/gfx/cpp/fidl.h>