Ben Copsey

Fix for Mac

... ... @@ -3003,7 +3003,11 @@ static BOOL isiPhoneOS2;
}
// Are we performing bandwidth throttling?
#if TARGET_OS_IPHONE
if (isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond))) {
#else
if (maxBandwidthPerSecond) {
#endif
// How much data can we still send or receive this second?
long long bytesRemaining = (long long)maxBandwidthPerSecond - (long long)bandwidthUsedInLastSecond;
... ...
... ... @@ -18,6 +18,8 @@ There are two versions of Apple's Reachability class, both of which are included
* Version 1.5 is the old version, but it is compatible with both iPhone OS 2.2.1 and iPhone OS 3.0 and later. You should use this if your application needs to work on iPhone OS 2.2.1.
To use Version 1.5, set this to 0, and include Reachbility.h + Reachbility.m from the Reachability 1.5 folder in your project
This config option is not used for apps targeting Mac OS X
*/
#define REACHABILITY_20_API 0
... ...
... ... @@ -55,5 +55,7 @@
- (void)delegateTestStarted:(ASIHTTPRequest *)request;
- (void)delegateTestFinished:(ASIHTTPRequest *)request;
- (void)delegateTestFailed:(ASIHTTPRequest *)request;
#if TARGET_OS_IPHONE
- (void)testReachability;
#endif
@end
... ...
... ... @@ -1214,6 +1214,7 @@
progress = newProgress;
}
#if TARGET_OS_IPHONE
- (void)testReachability
{
#if REACHABILITY_20_API
... ... @@ -1227,5 +1228,5 @@
NSLog(@"Not connected via WWAN");
}
}
#endif
@end
\ No newline at end of file
... ...
This diff was suppressed by a .gitattributes entry.