aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-09-09 01:16:04 -0400
committerMike Frysinger <vapier@gentoo.org>2021-09-09 01:28:58 -0400
commit93aaa742b360cb9a0b69eb74d1e516cd96982647 (patch)
tree82ccbfb3a78af1ebf39a5ed17e42431bd24f9966 /sim/common
parent287fbf951acc76f21d5ec6ab515d6080571aa7ee (diff)
downloadgdb-93aaa742b360cb9a0b69eb74d1e516cd96982647.zip
gdb-93aaa742b360cb9a0b69eb74d1e516cd96982647.tar.gz
gdb-93aaa742b360cb9a0b69eb74d1e516cd96982647.tar.bz2
sim: cgen: workaround Windows VOID define
The cgen framework provides a "VOID" type for code to use, but this defines ends up conflicting with the standard Windows VOID define. Since they actually define to the same thing ("void"), undef it here to fix the Windows build. We might want to reconsider the need for "VOID" in cgen, but that will take larger discussion & coordination with the cgen project.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/cgen-types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/cgen-types.h b/sim/common/cgen-types.h
index cb71b6b..059f31a 100644
--- a/sim/common/cgen-types.h
+++ b/sim/common/cgen-types.h
@@ -57,6 +57,8 @@ typedef enum mode_type {
extern const char * const cgen_mode_names[];
#define MODE_NAME(m) (cgen_mode_names[m])
+/* Some system headers define VOID already, so undo it. */
+#undef VOID
typedef void VOID;
typedef unsigned char BI;
typedef signed8 QI;