Bug 1061604 part.0 Add IsWin10OrLater() r=jimm
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 13 Mar 2015 21:51:00 +0900
changeset 233537 6fb4932dd12eed46ec221d6ec7bc10461093ebcd
parent 233536 4503e4924ff2115ea72b3236b35a3aefb0ef85d7
child 233538 a2c1363842c7ab2c58b52e291ab90c251c31eb1c
push id28417
push userryanvm@gmail.com
push dateFri, 13 Mar 2015 19:52:44 +0000
treeherdermozilla-central@977add19414a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1061604
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1061604 part.0 Add IsWin10OrLater() r=jimm
mfbt/WindowsVersion.h
--- a/mfbt/WindowsVersion.h
+++ b/mfbt/WindowsVersion.h
@@ -167,16 +167,22 @@ IsWin7SP1OrLater()
 
 MOZ_ALWAYS_INLINE bool
 IsWin8OrLater()
 {
   return IsWindowsVersionOrLater(0x06020000ul);
 }
 
 MOZ_ALWAYS_INLINE bool
+IsWin10OrLater()
+{
+  return IsWindowsVersionOrLater(0x0a000000ul);
+}
+
+MOZ_ALWAYS_INLINE bool
 IsNotWin7PreRTM()
 {
   return IsWin7SP1OrLater() || !IsWin7OrLater() ||
          IsWindowsBuildOrLater(7600);
 }
 
 } // namespace mozilla