diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index 2a1fe6c373..cdcded040c 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -74,7 +74,7 @@ id apple_platform; apple_view_type_t _vt; NSView* _renderView; id _sleepActivity; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) WindowListener *_listener; #endif } @@ -265,12 +265,12 @@ static char** waiting_argv; [self.window setCollectionBehavior:NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY]; } -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) _listener = [WindowListener new]; #endif [self.window setAcceptsMouseMovedEvents: YES]; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) [self.window setNextResponder:_listener]; self.window.delegate = _listener; #endif @@ -342,7 +342,7 @@ static char** waiting_argv; [_renderView setFrame: [[self.window contentView] bounds]]; self.window.contentView = _renderView; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +#if !(defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) [self.window.contentView setNextResponder:_listener]; #endif }