New upstream release
[packages/capstone.git] / debian / patches / mips_macro_conflict.patch
1 Description: Remove conflicting compiler macro in MIPS.
2  MIPS doesn't compile because there a compiler macro definition called mips
3  and a variable with the same name.
4 Author: Plamen Aleksandrov <plamen@aomeda.com>
5 Bug-Debian: http://bugs.debian.org/755193
6 Forwarded: no
7 Reviewed-By: David Martínez Moreno <ender@debian.org>
8 Last-Update: 2014-07-18
9
10 --- a/Makefile
11 +++ b/Makefile
12 @@ -123,7 +123,7 @@ DEP_MIPS += arch/Mips/MipsGenSubtargetIn
13  
14  LIBOBJ_MIPS =
15  ifneq (,$(findstring mips,$(CAPSTONE_ARCHS)))
16 -       CFLAGS += -DCAPSTONE_HAS_MIPS
17 +       CFLAGS += -DCAPSTONE_HAS_MIPS -Umips
18         LIBOBJ_MIPS += $(OBJDIR)/arch/Mips/MipsDisassembler.o
19         LIBOBJ_MIPS += $(OBJDIR)/arch/Mips/MipsInstPrinter.o
20         LIBOBJ_MIPS += $(OBJDIR)/arch/Mips/MipsMapping.o