radare2: fix build on ppc32

This commit is contained in:
q66 2022-07-25 13:48:12 +02:00
parent fa9095b5ca
commit 2e1e4f7d37

View File

@ -0,0 +1,13 @@
--- a/libr/anal/p/anal_ppc_cs.c
+++ b/libr/anal/p/anal_ppc_cs.c
@@ -596,6 +596,10 @@ static char *shrink(char *op) {
return op;
}
+#ifdef PPC
+#undef PPC
+#endif
+
#define CSINC PPC
#define CSINC_MODE \
((a->config->bits == 64) ? CS_MODE_64 : (a->config->bits == 32) ? CS_MODE_32 : 0) \