From 90647853f9829e6a382bc4d6d5b0e56af4da3741 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Sat, 29 Oct 2011 12:58:26 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- ia64-dis.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1