From Stephan Huber, "a recent submission added a 10.6-feature to GraphicsWindowCocoa. I added

some ifdefs around, so it compiles again with 10.5 SDK"
This commit is contained in:
Robert Osfield 2012-01-26 18:03:26 +00:00
parent eb2e4d313a
commit a0df35b580

View File

@ -743,12 +743,20 @@ static NSRect convertToQuartzCoordinates(const NSRect& rect)
#pragma mark GraphicsWindowCocoaDelegate
#ifndef MAC_OS_X_VERSION_10_6
#define MAC_OS_X_VERSION_10_6 1060
#endif
// ----------------------------------------------------------------------------------------------------------
// the window-delegate, handles moving/resizing of the window etc.
// ----------------------------------------------------------------------------------------------------------
@interface GraphicsWindowCocoaDelegate : NSObject <NSWindowDelegate>
@interface GraphicsWindowCocoaDelegate : NSObject
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
<NSWindowDelegate>
#endif
{
@private
osgViewer::GraphicsWindowCocoa* _win;