sim-card
/
qemu
Archived
10
0
Fork 0

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>
This commit is contained in:
Peter Maydell 2011-10-29 12:58:26 +01:00 committed by Anthony Liguori
parent 1fdc11c369
commit 90647853f9
1 changed files with 3 additions and 0 deletions

View File

@ -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