X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/6342b70c4b8e5f41fc61d2b78ff0cbfe107be3cb..d10cbac79646e6eaf138b4c60c77fef463bb9a13:/Mach/Inject.cpp diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 840dc63..46f61be 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -22,7 +22,20 @@ #include #include + +#ifdef __APPLE__ +#include "TargetConditionals.h" +#endif + +#ifdef TARGET_OS_IPHONE +#include +#define mach_vm_allocate vm_allocate +#define mach_vm_protect vm_protect +#define mach_vm_write vm_write +#define mach_vm_address_t vm_address_t +#else #include +#endif #include