Skip to content

Instantly share code, notes, and snippets.

@rcx
Last active April 25, 2020 03:25
Show Gist options
  • Save rcx/3470d9722cefa1c6e63f60fc5edaac51 to your computer and use it in GitHub Desktop.
Save rcx/3470d9722cefa1c6e63f60fc5edaac51 to your computer and use it in GitHub Desktop.
Preprocess library include headers for loading in IDA
// #define __attribute__(X)
// #define __asm__(X)
// #define __extension__
// #define __inline
#define __signed__ signed
#undef __GNUC__
#undef __GNUC_MINOR__
// #pragma pack(push, 1)
clang -include preamble.h -I. -P -E capstone.h -o out.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment