From 60f8a8c9895a6ef5fb4e86170ea355b4c498c1d8 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 16 Jan 2024 17:13:35 +0100 Subject: [PATCH] fix: Fix C++ build-error when trying to use `JSITypedArray.h` (#2396) * fix: Fix C++ build-error when trying to use `JSITypedArray.h` * Update SharedArray.h --- package/ios/Frame Processor/SharedArray.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/ios/Frame Processor/SharedArray.h b/package/ios/Frame Processor/SharedArray.h index bb49d6e..f2295ee 100644 --- a/package/ios/Frame Processor/SharedArray.h +++ b/package/ios/Frame Processor/SharedArray.h @@ -12,9 +12,13 @@ #import #ifdef __cplusplus -#import "JSITypedArray.h" #import using namespace facebook; + +namespace vision { +// forward-declaration since we cannot import C++ headers here yet. +class TypedArrayBase; +} #endif // Needs to be in sync with JSITypedArray.h as the index is used