From: Jay Freeman (saurik) Date: Sat, 4 Jan 2014 05:37:32 +0000 (-0800) Subject: The TARGET_OS_IPHONE variable is set to 1 or 0. X-Git-Tag: v0.9.500~104 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/b6ace22552e41cb05d69eb0325a91dc0b7aa1d40 The TARGET_OS_IPHONE variable is set to 1 or 0. --- diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 982ffe4..c70e83c 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -20,7 +20,7 @@ /* }}} */ #include "TargetConditionals.h" -#ifdef TARGET_OS_IPHONE +#if TARGET_OS_IPHONE #undef __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ #define __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ __IPHONE_5_0 #endif @@ -57,7 +57,7 @@ void InjectLibrary(pid_t pid) { memcpy(library, addr.dli_fname, flength); library[flength] = '\0'; _assert(strcmp(library + flength - 6, ".dylib") == 0); -#ifndef TARGET_OS_IPHONE +#if !TARGET_OS_IPHONE strcpy(library + flength - 6, "-any.dylib"); #endif