Skip to content

Commit 6de7874

Browse files
committed
add a header file to solve hexagon error
1 parent 101408e commit 6de7874

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/tvm/runtime/c_runtime_api.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ extern "C" {
7777
#include <stddef.h>
7878
#include <stdint.h>
7979
#include <stdio.h>
80+
#include <sys/types.h>
8081

8182
#if defined(_MSC_VER)
8283
#if defined(_WIN64)
83-
#define tvm_ssize_t int64_t
84+
typedef int64_t tvm_ssize_t;
8485
#else
85-
#define tvm_ssize_t int32_t
86+
typedef int32_t tvm_ssize_t;
8687
#endif
8788
#else
88-
#define tvm_ssize_t ssize_t
89+
typedef ssize_t tvm_ssize_t;
8990
#endif
9091

9192
/*! \brief type of array index. */

0 commit comments

Comments
 (0)