Make headergen_v2's output include what it uses

Change-Id: Ie9790faac44c33a170bc2dc39d706575cefa0f2f
This commit is contained in:
Aidan MacDonald 2021-02-27 22:02:31 +00:00
parent 7d7a3156d3
commit b8945734f5
1 changed files with 3 additions and 0 deletions

View File

@ -1004,6 +1004,9 @@ bool common_generator::generate_macro_header(error_context_t& ectx)
print_guard(fout, guard, true);
fout << "\n";
/* ensure that types uintXX_t are defined */
fout << "#include <stdint.h>\n\n";
/* print variadic OR macros:
* __VAR_OR1(prefix, suffix) expands to prefix##suffix
* and more n>=2, using multiple layers of macros: