summaryrefslogtreecommitdiff
path: root/utils/regtools/headergen_v2.cpp
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 /utils/regtools/headergen_v2.cpp
parent7d7a3156d308b66dcf41fc6e693208bc56c85f00 (diff)
downloadrockbox-b8945734f577c9a4d3c40254ee1c8bcfb48b49ec.tar.gz
rockbox-b8945734f577c9a4d3c40254ee1c8bcfb48b49ec.zip
Make headergen_v2's output include what it uses
Change-Id: Ie9790faac44c33a170bc2dc39d706575cefa0f2f
Diffstat (limited to 'utils/regtools/headergen_v2.cpp')
-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)
1004 print_guard(fout, guard, true); 1004 print_guard(fout, guard, true);
1005 fout << "\n"; 1005 fout << "\n";
1006 1006
1007 /* ensure that types uintXX_t are defined */
1008 fout << "#include <stdint.h>\n\n";
1009
1007 /* print variadic OR macros: 1010 /* print variadic OR macros:
1008 * __VAR_OR1(prefix, suffix) expands to prefix##suffix 1011 * __VAR_OR1(prefix, suffix) expands to prefix##suffix
1009 * and more n>=2, using multiple layers of macros: 1012 * and more n>=2, using multiple layers of macros: