From 41bf57fee323712dbe3715729b0c4edcfba066d4 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 3 Apr 2021 22:40:08 +0200 Subject: [PATCH] guard against SDK < 10.12 --- src/osx/cocoa/window.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index c7d0c7b338..32235a248a 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -884,6 +884,7 @@ static void SetDrawingEnabledIfFrozenRecursive(wxWidgetCocoaImpl *impl, bool ena [super viewDidMoveToWindow]; } +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 - (void) viewWillDraw { if ( WX_IS_MACOS_AVAILABLE(11, 0) ) @@ -894,6 +895,7 @@ static void SetDrawingEnabledIfFrozenRecursive(wxWidgetCocoaImpl *impl, bool ena [super viewWillDraw]; } +#endif @end // wxNSView