aboutsummaryrefslogtreecommitdiff
path: root/ia64-dis.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-10-29 12:58:26 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-01 11:50:12 -0500
commit90647853f9829e6a382bc4d6d5b0e56af4da3741 (patch)
treebfc5f66235ed8af19804d8ce1d3337372bca67e0 /ia64-dis.c
parent1fdc11c36971e0d4eeb2ce817f7e520b2028c2f2 (diff)
ia64-dis.c: Undefine ABS to avoid clash with glib
Undefine ABS to avoid a clash with the macro that glib.h helpfully defines for us (and a resulting build failure on ia64 hosts). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ia64-dis.c')
-rw-r--r--ia64-dis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ia64-dis.c b/ia64-dis.c
index 2886df3614..2a103e6b5c 100644
--- a/ia64-dis.c
+++ b/ia64-dis.c
@@ -781,6 +781,9 @@ ext_inc3 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
return 0;
}
+/* glib.h defines ABS so we must undefine it to avoid a clash */
+#undef ABS
+
#define CST IA64_OPND_CLASS_CST
#define REG IA64_OPND_CLASS_REG
#define IND IA64_OPND_CLASS_IND