From 3e9e767d79c85726741faee7b025412a27a6f86c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 20 May 2014 07:46:57 -0400 Subject: Fixed the Mac OS X 10.6 building using a rather hackish approach... Now it won't build on 10.6 itself without problems, so... --- prefsize_darwin.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'prefsize_darwin.m') diff --git a/prefsize_darwin.m b/prefsize_darwin.m index 2dc7095..8c975af 100644 --- a/prefsize_darwin.m +++ b/prefsize_darwin.m @@ -2,6 +2,20 @@ #include "objc_darwin.h" #include + +// see delegateuitask_darwin.m +// in this case, NSScrollView.h, NSTableView.h, AND NSProgressIndicator.h all include NSApplication.h + +#undef MAC_OS_X_VERSION_MIN_REQUIRED +#undef MAC_OS_X_VERSION_MAX_ALLOWED +#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7 +#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7 +#include +#undef MAC_OS_X_VERSION_MIN_REQUIRED +#undef MAC_OS_X_VERSION_MAX_ALLOWED +#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6 +#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6 + #include #include #include -- cgit v1.2.3