From 7df967d4d4783960d1fd07bac38326700bea8f12 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 10 Jun 2024 19:34:57 +0200 Subject: [PATCH] Sync DISASM_INTEL_SYNTAX condition #if/ifdef/defined (-Wundef) (#90) * Sync DISASM_INTEL_SYNTAX condition #if/ifdef/defined (-Wundef) * Rename DISASM_INTEL_SYNTAX to IR_DISASM_INTEL_SYNTAX --- ir_disasm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir_disasm.c b/ir_disasm.c index 79c80c04..46deee32 100644 --- a/ir_disasm.c +++ b/ir_disasm.c @@ -29,6 +29,10 @@ #include #define HAVE_CAPSTONE_ITER +#ifndef IR_DISASM_INTEL_SYNTAX +# define IR_DISASM_INTEL_SYNTAX 0 +#endif + typedef struct _ir_sym_node { uint64_t addr; uint64_t end; @@ -365,7 +369,7 @@ int ir_disasm(const char *name, } # endif cs_option(cs, CS_OPT_DETAIL, CS_OPT_ON); -# if DISASM_INTEL_SYNTAX +# if IR_DISASM_INTEL_SYNTAX cs_option(cs, CS_OPT_SYNTAX, CS_OPT_SYNTAX_INTEL); # else cs_option(cs, CS_OPT_SYNTAX, CS_OPT_SYNTAX_ATT);