File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 62
62
#include <stdlib.h>
63
63
#include "wasm.h"
64
64
65
+ #if defined(WASMER_WASI_ENABLED )
66
+ enum wasi_version_t {
67
+ #if defined(WASMER_WASI_ENABLED )
68
+ LATEST = 0 ,
69
+ #endif
70
+ #if defined(WASMER_WASI_ENABLED )
71
+ SNAPSHOT0 = 1 ,
72
+ #endif
73
+ #if defined(WASMER_WASI_ENABLED )
74
+ SNAPSHOT1 = 2 ,
75
+ #endif
76
+ #if defined(WASMER_WASI_ENABLED )
77
+ INVALID_VERSION = 3 ,
78
+ #endif
79
+ };
80
+ typedef uint32_t wasi_version_t ;
81
+ #endif
82
+
65
83
#if defined(WASMER_COMPILER_ENABLED )
66
84
/**
67
85
* Kind of compilers that can be used by the engines.
@@ -120,10 +138,6 @@ typedef struct wasi_config_t wasi_config_t;
120
138
typedef struct wasi_env_t wasi_env_t ;
121
139
#endif
122
140
123
- #if defined(WASMER_WASI_ENABLED )
124
- typedef struct wasi_version_t wasi_version_t ;
125
- #endif
126
-
127
141
#if defined(WASMER_WASI_ENABLED )
128
142
void wasi_config_arg (wasi_config_t * config , const char * arg );
129
143
#endif
You can’t perform that action at this time.
0 commit comments