summaryrefslogtreecommitdiffstats
path: root/utils/regtools/headergen_v2.cpp
diff options
context:
space:
mode:
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)
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: