summaryrefslogtreecommitdiff
path: root/prefsize_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'prefsize_darwin.m')
-rw-r--r--prefsize_darwin.m14
1 files changed, 14 insertions, 0 deletions
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 <AppKit/NSControl.h>
+
+// 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 <AppKit/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_6
+#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
+
#include <AppKit/NSScrollView.h>
#include <AppKit/NSTableView.h>
#include <AppKit/NSProgressIndicator.h>