Skip to content

Commit

Permalink
fix build issue use android ndk
Browse files Browse the repository at this point in the history
Type: Bug fix

Signed-off-by: Chen <[email protected]>
  • Loading branch information
Chen committed Dec 8, 2023
1 parent aef6b72 commit ce971cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/tim/vx/platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ std::shared_ptr<IExecutable> 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<bool(const void*)>;
#endif
using data_t = const void*;
virtual ~IDevice(){};
virtual bool Submit(const std::shared_ptr<Graph>& graph) = 0;
Expand Down

0 comments on commit ce971cf

Please sign in to comment.