Skip to content

Commit ba4e909

Browse files
committed
feat: include original wasm_export.h and necessary headers in generated header file
1 parent 5b7d3d0 commit ba4e909

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ci/generate_checked_functions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ def process_header():
150150
with open(output_header, "w") as f:
151151
f.write("#ifndef WASM_EXPORT_CHECKED_H\n#define WASM_EXPORT_CHECKED_H\n\n")
152152

153+
# necessary headers
154+
f.write("#include <stdbool.h>\n")
155+
f.write("#include <stdint.h>\n")
156+
f.write("#include <stdlib.h>\n")
157+
f.write('#include "wasm_export.h"\n\n')
158+
153159
# Write the updated Result struct
154160
f.write(RESULT_STRUCT + "\n")
155161

0 commit comments

Comments
 (0)