capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.61k stars 1.56k forks source link

Fix #2509. #2510

Closed Rot127 closed 4 weeks ago

Rot127 commented 1 month ago

Compatibility headers should always include the header in the same dir.

Your checklist for this pull request

Detailed description

The comparability header should not include the system headers. It breaks on one side capstone.pc and also is not very intuitive. Because (I would say) the header is always assumed to be the compatibility header within its directory. Not within another.

Test plan

...

Closing issues

closes https://github.com/capstone-engine/capstone/issues/2509

XVilka commented 1 month ago

@kabeor please merge also this one