Skip to content

Commit 3db1338

Browse files
committed
fix WASM_ENABLE_WASI_EPHEMERAL_NN build
this structure is used by host logic as well. ideally definitions for wasm and host should be separated. until it happens, check __wasm__ to avoid the breakage.
1 parent fbd95c2 commit 3db1338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/libraries/wasi-nn/include/wasi_nn_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ typedef struct {
7777
// Describe the size of the tensor (e.g., 2x2x2x2 -> [2, 2, 2, 2]). To
7878
// represent a tensor containing a single value, use `[1]` for the tensor
7979
// dimensions.
80-
#if WASM_ENABLE_WASI_EPHEMERAL_NN != 0
80+
#if WASM_ENABLE_WASI_EPHEMERAL_NN != 0 && defined(__wasm__)
8181
tensor_dimensions dimensions;
8282
#else
8383
tensor_dimensions *dimensions;

0 commit comments

Comments
 (0)