aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 21:00:30 +0100
committerMax <post@wickenrode.com>2014-12-13 21:00:30 +0100
commitc573bf18ff0ce2a350bec687f2d7cc5ba5a69865 (patch)
tree508f9b880f6f8465065aedb3a4bb045fcaa753cb /Source/SPConstants.h
parentd5dd8b1eb5b8bfaa040ddc52d603231e4828cec7 (diff)
downloadsequelpro-c573bf18ff0ce2a350bec687f2d7cc5ba5a69865.tar.gz
sequelpro-c573bf18ff0ce2a350bec687f2d7cc5ba5a69865.tar.bz2
sequelpro-c573bf18ff0ce2a350bec687f2d7cc5ba5a69865.zip
Attempt 2 to fix building on 10.7, 10.8
Diffstat (limited to 'Source/SPConstants.h')
-rw-r--r--Source/SPConstants.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 322219ae..f630dd49 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -609,3 +609,19 @@ extern NSString *SPURLSchemeQueryResultStatusPathHeader;
extern NSString *SPURLSchemeQueryResultMetaPathHeader;
#define SPAppDelegate ((SPAppController *)[NSApp delegate])
+
+//Backwards compatibility
+#ifndef __MAC_10_7
+#define __MAC_10_7 1070
+#endif
+#ifndef __MAC_10_8
+#define __MAC_10_8 1080
+#endif
+#ifndef __MAC_10_10
+#define __MAC_10_10 101000
+#endif
+
+// This enum is available since 10.5 but only got a "name" in 10.10
+#if __MAC_OS_X_VERSION_MAX_ALLOWED < __MAC_10_10
+typedef NSUInteger NSCellHitResult;
+#endif