Skip to content

Commit

Permalink
Fix preprocessor check
Browse files Browse the repository at this point in the history
  • Loading branch information
krstnfx committed Oct 18, 2015
1 parent 56bccf0 commit 928bab0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LocationManager/INTULocationManager/INTULocationManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ - (instancetype)init
_locationManager = [[CLLocationManager alloc] init];
_locationManager.delegate = self;

#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 && __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4
#ifdef __IPHONE_8_4
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4
/* iOS 9 requires setting allowsBackgroundLocationUpdates to YES in order to receive background location updates.
We only set it to YES if the location background mode is enabled for this app, as the documentation suggests it is a
fatal programmer error otherwise. */
Expand All @@ -118,7 +119,8 @@ - (instancetype)init
[_locationManager setAllowsBackgroundLocationUpdates:YES];
}
}
#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 && __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4 */
#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4 */
#endif /* __IPHONE_8_4 */

_locationRequests = @[];
}
Expand Down

0 comments on commit 928bab0

Please sign in to comment.