From ce971cf4427bbc6968c50ad9800a5b28ed34f497 Mon Sep 17 00:00:00 2001 From: Chen Date: Fri, 8 Dec 2023 02:50:20 +0000 Subject: [PATCH] fix build issue use android ndk Type: Bug fix Signed-off-by: Chen --- include/tim/vx/platform/platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/tim/vx/platform/platform.h b/include/tim/vx/platform/platform.h index cc2799dc5..263042bab 100644 --- a/include/tim/vx/platform/platform.h +++ b/include/tim/vx/platform/platform.h @@ -59,7 +59,11 @@ std::shared_ptr CreateExecutableSet( class IDevice { public: using device_id_t = uint32_t; + #ifdef __ANDROID_NDK__ + typedef bool (*async_callback)(const void*); + #else using async_callback = std::function; + #endif using data_t = const void*; virtual ~IDevice(){}; virtual bool Submit(const std::shared_ptr& graph) = 0;