Skip to content

Commit

Permalink
Use correct include guard for PPC
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Oct 13, 2023
1 parent b83103e commit 2db40f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MCInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ static bool testFeatureBits(const MCInst *MI, uint32_t Value)
switch (MI->csh->arch) {
default:
assert(0 && "Not implemented for current arch.");
return false;
#ifdef CAPSTONE_HAS_ARM
case CS_ARCH_ARM:
return ARM_getFeatureBits(MI->csh->mode, Value);
#endif
#ifdef CAPSTONE_HAS_PPC
#ifdef CAPSTONE_HAS_POWERPC
case CS_ARCH_PPC:
return PPC_getFeatureBits(MI->csh->mode, Value);
#endif
Expand Down

0 comments on commit 2db40f6

Please sign in to comment.