summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-11 07:03:55 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-11 07:03:55 -0800
commit3d45bad15ac9a3bee8d6aa3ffa9f0bc3c6a480fd (patch)
tree09413db652c1045743951acabd95eed6d933b341 /MobileCydia.mm
parent24e12629ee1fa2c705128132bac182b7c8c216c1 (diff)
Separate out Version.mm: faster compile.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bd5ddb9..f842c17 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -208,8 +208,7 @@ void PrintTimes() {
#define _end }
/* }}} */
-#include "Version.h"
-#define Cydia_ CYDIA_VERSION
+extern NSString *Cydia_;
#define lprintf(args...) fprintf(stderr, args)
@@ -3987,7 +3986,7 @@ static _H<NSMutableSet> Diversions_;
}
- (NSString *) version {
- return @ Cydia_;
+ return Cydia_;
}
- (NSString *) device {
@@ -4594,7 +4593,7 @@ static _H<NSMutableSet> Diversions_;
}
- (NSString *) applicationNameForUserAgent {
- NSString *application([NSString stringWithFormat:@"Cydia/%@", @ Cydia_]);
+ NSString *application([NSString stringWithFormat:@"Cydia/%@", Cydia_]);
if (Safari_ != nil)
application = [NSString stringWithFormat:@"Safari/%@ %@", Safari_, application];