From 6f8724c59e84347c2d9e84c8676c15b3d5fcb695 Mon Sep 17 00:00:00 2001 From: Ian McKellar Date: Fri, 15 Nov 2019 21:16:44 -0800 Subject: [PATCH] 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 --- .../shell/platform/fuchsia/flutter/accessibility_bridge.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/accessibility_bridge.h b/engine/src/flutter/shell/platform/fuchsia/flutter/accessibility_bridge.h index f81f995526..58d53933b4 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/accessibility_bridge.h +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/accessibility_bridge.h @@ -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 #include #include