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
This commit is contained in:
Marc Rousavy 2024-01-16 17:13:35 +01:00 committed by GitHub
parent 783f49e88e
commit 60f8a8c989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,9 +12,13 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#ifdef __cplusplus #ifdef __cplusplus
#import "JSITypedArray.h"
#import <jsi/jsi.h> #import <jsi/jsi.h>
using namespace facebook; using namespace facebook;
namespace vision {
// forward-declaration since we cannot import C++ headers here yet.
class TypedArrayBase;
}
#endif #endif
// Needs to be in sync with JSITypedArray.h as the index is used // Needs to be in sync with JSITypedArray.h as the index is used