Issue #1690 - Part 1: Fix MacOS version detection above 10.15.

Changes based on Mozilla bug 1616404 but supporting back to 10.7.
This commit is contained in:
Brian Smith 2020-11-23 08:18:34 -06:00 committed by roytam1
commit e4030ad075
5 changed files with 97 additions and 93 deletions

View file

@ -14,10 +14,10 @@
/// is the only call that returns the unadjusted values.
class nsCocoaFeatures {
public:
static int32_t OSXVersion();
static int32_t OSXVersionMajor();
static int32_t OSXVersionMinor();
static int32_t OSXVersionBugFix();
static int32_t macOSVersion();
static int32_t macOSVersionMajor();
static int32_t macOSVersionMinor();
static int32_t macOSVersionBugFix();
static bool OnYosemiteOrLater();
static bool OnElCapitanOrLater();
static bool OnSierraOrLater();
@ -41,6 +41,6 @@ public:
private:
static void InitializeVersionNumbers();
static int32_t mOSXVersion;
static int32_t mOSVersion;
};
#endif // nsCocoaFeatures_h_