Skip to content

Commit

Permalink
Sync DISASM_INTEL_SYNTAX condition #if/ifdef/defined (-Wundef) (#90)
Browse files Browse the repository at this point in the history
* Sync DISASM_INTEL_SYNTAX condition #if/ifdef/defined (-Wundef)

* Rename DISASM_INTEL_SYNTAX to IR_DISASM_INTEL_SYNTAX
  • Loading branch information
petk authored Jun 10, 2024
1 parent 44df371 commit 7df967d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ir_disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include <capstone/capstone.h>
#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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7df967d

Please sign in to comment.