diff options
author | Max <post@wickenrode.com> | 2017-03-31 23:48:02 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2017-03-31 23:53:51 +0200 |
commit | 2a6e6504a3ae379d80fb9c4bd19250382b9180ad (patch) | |
tree | 4e4741400adb8184bb8d0f998115821cd5e4c087 /Source/SPOSInfo.m | |
parent | 004af0c9d13d5c9f29b3e0e08ee7df025ee56026 (diff) | |
download | sequelpro-2a6e6504a3ae379d80fb9c4bd19250382b9180ad.tar.gz sequelpro-2a6e6504a3ae379d80fb9c4bd19250382b9180ad.tar.bz2 sequelpro-2a6e6504a3ae379d80fb9c4bd19250382b9180ad.zip |
Update source code compatibility
* Remove forward SDK declaration for 10.8 and below (since that is the minimum required development SDK)
* Fix one case where a method unconditionally required a 10.9+ runtime
* Move all of the forward/backward hacks into their own file
Diffstat (limited to 'Source/SPOSInfo.m')
-rw-r--r-- | Source/SPOSInfo.m | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/Source/SPOSInfo.m b/Source/SPOSInfo.m index b862e898..412b634a 100644 --- a/Source/SPOSInfo.m +++ b/Source/SPOSInfo.m @@ -29,26 +29,7 @@ // More info at <https://github.com/sequelpro/sequelpro> #import "SPOSInfo.h" - -// Needed because this class is also compiled with SequelProTunnelAssistant which can't access SPConstants.h -#ifndef __MAC_10_10 -#define __MAC_10_10 101000 -#endif - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < __MAC_10_10 -// This code is available since 10.8 but public only since 10.10 -typedef struct { - NSInteger majorVersion; - NSInteger minorVersion; - NSInteger patchVersion; -} NSOperatingSystemVersion; - -@interface NSProcessInfo () -- (NSOperatingSystemVersion)operatingSystemVersion; -- (BOOL)isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version; -@end - -#endif +#import "SPCompatibility.h" // Needed because this class is also compiled with SequelProTunnelAssistant int SPOSVersionCompare(SPOSVersion left, SPOSVersion right) { |