From ff7829558f2ca9c7aa03de860bd95c0e70fff93b Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Thu, 19 Oct 2023 16:47:20 +0000 Subject: [PATCH] Add missing import (flutter/engine#47083) Fixes the following: https://github.com/flutter/engine/commit/c8aa0844f22ebfccc6a1db6c15f3ba459c90f89b results in the following error appearing internally when compiling for Android: ``` In file included from fml/synchronization/sync_switch.cc:5: ./fml/synchronization/sync_switch.h:74:34: error: implicit instantiation of undefined template 'std::vector' mutable std::vector observers_; ^ <...>: note: template is declared here class _LIBCPP_TEMPLATE_VIS vector; ^ 1 error generated. ``` *List which issues are fixed by this PR. You must list at least one issue.* b/306266542 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/fml/synchronization/sync_switch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/fml/synchronization/sync_switch.h b/engine/src/flutter/fml/synchronization/sync_switch.h index c01c05aac2..d9b0807afd 100644 --- a/engine/src/flutter/fml/synchronization/sync_switch.h +++ b/engine/src/flutter/fml/synchronization/sync_switch.h @@ -5,9 +5,9 @@ #ifndef FLUTTER_FML_SYNCHRONIZATION_SYNC_SWITCH_H_ #define FLUTTER_FML_SYNCHRONIZATION_SYNC_SWITCH_H_ -#include #include #include +#include #include "flutter/fml/macros.h" #include "flutter/fml/synchronization/shared_mutex.h"