Fix capstone3 build regression introduced in 7722c0ae84 (#7020)

This commit is contained in:
Levente Polyak 2017-03-13 17:59:26 +01:00 committed by radare
parent 5a4c18f49a
commit d9d5f79278

View File

@ -72,7 +72,9 @@ static void opex(RStrBuf *buf, csh handle, cs_insn *insn) {
r_strbuf_append (buf, ",");
}
r_strbuf_appendf (buf, "{\"size\":%d", op->size);
#if CS_API_MAJOR >= 4
r_strbuf_appendf (buf, ",\"rw\":%d", op->access); // read , write, read|write
#endif
switch (op->type) {
case X86_OP_REG:
r_strbuf_appendf (buf, ",\"type\":\"reg\"");