Skip to content

Commit

Permalink
Fix #145 - build with r2-5.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 4, 2025
1 parent 7782be2 commit 1b0c0f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/anal_ghidra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2155,9 +2155,14 @@ extern "C" int esil_sleigh_init(RAnalEsil *esil) {
if (!esil) {
return false;
}
#if R2_VERSION_NUMBER >= 50909
r_anal_esil_set_op (esil, "PICK", sleigh_esil_consts_pick, 1, 0, R_ANAL_ESIL_OP_TYPE_CUSTOM, "");
r_anal_esil_set_op (esil, "POPCOUNT", sleigh_esil_popcount, 1, 2, R_ANAL_ESIL_OP_TYPE_CUSTOM, "");
#else
// Only consts-only version PICK will meet my demand
r_anal_esil_set_op (esil, "PICK", sleigh_esil_consts_pick, 1, 0, R_ANAL_ESIL_OP_TYPE_CUSTOM);
r_anal_esil_set_op (esil, "POPCOUNT", sleigh_esil_popcount, 1, 2, R_ANAL_ESIL_OP_TYPE_CUSTOM);
#endif
return true;
}

Expand Down

0 comments on commit 1b0c0f8

Please sign in to comment.