diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-20 07:46:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-20 07:46:57 -0400 |
| commit | 3e9e767d79c85726741faee7b025412a27a6f86c (patch) | |
| tree | 7e19fc91230417547dab19a949dd82d08d2a0104 /objc_darwin.m | |
| parent | 5f5f4f6c2adde30e1f15ff46b209c7e4312630f8 (diff) | |
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...
Diffstat (limited to 'objc_darwin.m')
| -rw-r--r-- | objc_darwin.m | 16 |
1 files changed, 16 insertions, 0 deletions
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 <Foundation/NSString.h> + +// 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 <AppKit/NSView.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/NSView.h> #include <AppKit/NSScrollView.h> #define to(T, x) ((T *) (x)) |
