mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
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:
parent
50684945ba
commit
e4030ad075
5 changed files with 97 additions and 93 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue