summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-02-27 22:02:31 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-02-27 22:02:31 +0000
commitb8945734f577c9a4d3c40254ee1c8bcfb48b49ec (patch)
tree622f96b533fa3c4a7cd726d9f487cdf4d3f46aed
parent7d7a3156d308b66dcf41fc6e693208bc56c85f00 (diff)
downloadrockbox-b8945734f577c9a4d3c40254ee1c8bcfb48b49ec.tar.gz
rockbox-b8945734f577c9a4d3c40254ee1c8bcfb48b49ec.tar.bz2
rockbox-b8945734f577c9a4d3c40254ee1c8bcfb48b49ec.zip
Make headergen_v2's output include what it uses
Change-Id: Ie9790faac44c33a170bc2dc39d706575cefa0f2f
-rw-r--r--utils/regtools/headergen_v2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/regtools/headergen_v2.cpp b/utils/regtools/headergen_v2.cpp
index 512dd41f0a..66d677c0b3 100644
--- a/utils/regtools/headergen_v2.cpp
+++ b/utils/regtools/headergen_v2.cpp
@@ -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: