mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-27 10:00:59 +00:00
feat: include original wasm_export.h and necessary headers in generated header file
This commit is contained in:
parent
a94ca0b5d3
commit
e1a10571a6
|
|
@ -150,6 +150,12 @@ def process_header():
|
|||
with open(output_header, "w") as f:
|
||||
f.write("#ifndef WASM_EXPORT_CHECKED_H\n#define WASM_EXPORT_CHECKED_H\n\n")
|
||||
|
||||
# necessary headers
|
||||
f.write("#include <stdbool.h>\n")
|
||||
f.write("#include <stdint.h>\n")
|
||||
f.write("#include <stdlib.h>\n")
|
||||
f.write('#include "wasm_export.h"\n\n')
|
||||
|
||||
# Write the updated Result struct
|
||||
f.write(RESULT_STRUCT + "\n")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user