Bug 942402 - Add version test functions for Thunderbird. r=jimm
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Tue, 03 Dec 2013 00:01:48 +0900
changeset 173944 6907ac2d0fc728c0057ebbcb16ce3e61654120ce
parent 173943 04ab309c684abe85aa78871839ab8f61091aade7
child 173945 70fde224f3d1194e1b4e693fb678045b0f86eaf8
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs942402
milestone28.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 942402 - Add version test functions for Thunderbird. r=jimm
xpcom/base/WindowsVersion.h
--- a/xpcom/base/WindowsVersion.h
+++ b/xpcom/base/WindowsVersion.h
@@ -46,20 +46,36 @@ namespace mozilla
       return true;
     }
 
     maxVersion = aVersion;
     return false;
   }
 
   MOZ_ALWAYS_INLINE bool
+  IsXPSP3OrLater()
+  { return IsWindowsVersionOrLater(0x0005000100030000ull); }
+
+  MOZ_ALWAYS_INLINE bool
+  IsWin2003OrLater()
+  { return IsWindowsVersionOrLater(0x0005000200000000ull); }
+
+  MOZ_ALWAYS_INLINE bool
+  IsWin2003SP2OrLater()
+  { return IsWindowsVersionOrLater(0x0005000200020000ull); }
+
+  MOZ_ALWAYS_INLINE bool
   IsVistaOrLater()
   { return IsWindowsVersionOrLater(0x0006000000000000ull); }
 
   MOZ_ALWAYS_INLINE bool
+  IsVistaSP1OrLater()
+  { return IsWindowsVersionOrLater(0x0006000000010000ull); }
+
+  MOZ_ALWAYS_INLINE bool
   IsWin7OrLater()
   { return IsWindowsVersionOrLater(0x0006000100000000ull); }
 
   MOZ_ALWAYS_INLINE bool
   IsWin7SP1OrLater()
   { return IsWindowsVersionOrLater(0x0006000100010000ull); }
 
   MOZ_ALWAYS_INLINE bool