summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-09-16 04:39:34 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2009-09-16 04:39:34 +0000
commit639180687601c7355ec440e90f69bd05d768d34f (patch)
tree0f1e7f8e806b17ebb3657b4e6a4078d743439e73
parentb4f9ed46bedfc2fccd3c8795222e473fb4609f94 (diff)
Some minor details.
-rw-r--r--MobileSafety.mm2
-rwxr-xr-xmake.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/MobileSafety.mm b/MobileSafety.mm
index dd72050..02b9469 100644
--- a/MobileSafety.mm
+++ b/MobileSafety.mm
@@ -176,7 +176,7 @@ MSHook(void, SBStatusBarTimeView$tile, SBStatusBarTimeView *self, SEL sel) {
#define Dylib_ "/Library/MobileSubstrate/MobileSubstrate.dylib"
-extern "C" void MSInitialize() {
+MSInitialize {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"MS:Warning: Entering Safe Mode");
diff --git a/make.sh b/make.sh
index 8560869..88cb898 100755
--- a/make.sh
+++ b/make.sh
@@ -2,4 +2,4 @@
flags=(-O2 -g0 -fno-exceptions -fvisibility=hidden)
cycc -i2.0 -oMobileSafety.dylib -- "${flags[@]}" -dynamiclib MobileSafety.mm \
-framework CoreFoundation -framework Foundation -framework UIKit \
- -L. -lsubstrate -lobjc -init _MSInitialize
+ -L. -lsubstrate -lobjc