File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,8 +81,11 @@ typedef struct WASMTableType *wasm_table_type_t;
8181struct WASMGlobalType ;
8282typedef struct WASMGlobalType * wasm_global_type_t ;
8383
84+ #ifndef WASM_MEMORY_T_DEFINED
85+ #define WASM_MEMORY_T_DEFINED
8486struct WASMMemory ;
8587typedef struct WASMMemory WASMMemoryType ;
88+ #endif
8689typedef WASMMemoryType * wasm_memory_type_t ;
8790
8891typedef struct wasm_import_t {
Original file line number Diff line number Diff line change @@ -518,7 +518,11 @@ typedef struct WASMMemory {
518518 uint32 num_bytes_per_page ;
519519 uint32 init_page_count ;
520520 uint32 max_page_count ;
521- } WASMMemory , WASMMemoryType ;
521+ } WASMMemory ;
522+ #ifndef WASM_MEMORY_T_DEFINED
523+ #define WASM_MEMORY_T_DEFINED
524+ typedef struct WASMMemory WASMMemoryType ;
525+ #endif
522526
523527typedef struct WASMTableImport {
524528 char * module_name ;
You can’t perform that action at this time.
0 commit comments