$OpenBSD$ index f52a3df..5491519 100644 --- widget/cocoa/nsCocoaFeatures.mm.orig Fri Feb 20 15:40:39 2015 +++ widget/cocoa/nsCocoaFeatures.mm Fri Feb 20 15:40:39 2015 @@ -3,11 +3,12 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#define MAC_OS_X_VERSION_MASK 0x0000FFFF -#define MAC_OS_X_VERSION_10_6_HEX 0x00001060 -#define MAC_OS_X_VERSION_10_7_HEX 0x00001070 -#define MAC_OS_X_VERSION_10_8_HEX 0x00001080 -#define MAC_OS_X_VERSION_10_9_HEX 0x00001090 +#define MAC_OS_X_VERSION_MASK 0x0000FFFF +#define MAC_OS_X_VERSION_10_6_HEX 0x00001060 +#define MAC_OS_X_VERSION_10_7_HEX 0x00001070 +#define MAC_OS_X_VERSION_10_8_HEX 0x00001080 +#define MAC_OS_X_VERSION_10_9_HEX 0x00001090 +#define MAC_OS_X_VERSION_10_10_HEX 0x000010A0 // This API will not work for OS X 10.10, see Gestalt.h. @@ -142,3 +143,9 @@ nsCocoaFeatures::OnMavericksOrLater() { return (OSXVersion() >= MAC_OS_X_VERSION_10_9_HEX); } + +/* static */ bool +nsCocoaFeatures::OnYosemiteOrLater() +{ + return (OSXVersion() >= MAC_OS_X_VERSION_10_10_HEX); +}