From 8e1945f76812bb020867e7a370a2f232682bef69 Mon Sep 17 00:00:00 2001 From: Antoine Date: Thu, 5 Oct 2017 14:11:58 -0700 Subject: [PATCH] :apple: skip tabbing category if macOS < Sierra Previously, the macro was ensuring the` MAC_OS_X_VERSION_10_12` was not defined to decide to compile a `NSWindow` category back porting native tabs or not. This patch ensures to compile the `NSWindow` category only if the min required version is lesser than 1012 (`MAC_OS_X_VERSION_10_12`) --- atom/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 252df0ebb2..4a6fa9fe2b 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -465,7 +465,7 @@ bool ScopedDisableResize::disable_resize_ = false; @end -#if !defined(MAC_OS_X_VERSION_10_12) +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1012 // MAC_OS_X_VERSION_10_12 enum { NSWindowTabbingModeDisallowed = 2