projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8964aa0
)
The TARGET_OS_IPHONE variable is set to 1 or 0.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 4 Jan 2014 05:37:32 +0000
(21:37 -0800)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 4 Jan 2014 05:37:32 +0000
(21:37 -0800)
Mach/Inject.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Mach/Inject.cpp
b/Mach/Inject.cpp
index 982ffe405964be894db3f19bffb327ce56fbbdef..c70e83cc9c7432a90a66bcf0b2f291f92d622d41 100644
(file)
--- a/
Mach/Inject.cpp
+++ b/
Mach/Inject.cpp
@@
-20,7
+20,7
@@
/* }}} */
#include "TargetConditionals.h"
-#if
def
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);
-#if
ndef
TARGET_OS_IPHONE
+#if
!
TARGET_OS_IPHONE
strcpy(library + flength - 6, "-any.dylib");
#endif