feat: include original wasm_export.h and necessary headers in generated header file

This commit is contained in:
liang.he@intel.com 2025-10-11 08:04:03 +00:00
parent a94ca0b5d3
commit e1a10571a6

View File

@ -150,6 +150,12 @@ def process_header():
with open(output_header, "w") as f: with open(output_header, "w") as f:
f.write("#ifndef WASM_EXPORT_CHECKED_H\n#define WASM_EXPORT_CHECKED_H\n\n") 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 # Write the updated Result struct
f.write(RESULT_STRUCT + "\n") f.write(RESULT_STRUCT + "\n")