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... --- objc_darwin.m | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'objc_darwin.m') diff --git a/objc_darwin.m b/objc_darwin.m index 9628837..ded192e 100644 --- a/objc_darwin.m +++ b/objc_darwin.m @@ -2,7 +2,23 @@ #include "objc_darwin.h" #include + +// see delegateuitask_darwin.m +// in this case, NSScrollView.h includes NSApplication.h +// NOTE NSView.h apparently lacks include guards; we'll need to uncomment the one below #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_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 #define to(T, x) ((T *) (x)) -- cgit v1.2.3