diff options
Diffstat (limited to 'xpcom')
-rw-r--r-- | xpcom/build/XPCOMInit.cpp | 1 | ||||
-rw-r--r-- | xpcom/glue/nsThreadUtils.cpp | 8 |
2 files changed, 1 insertions, 8 deletions
diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp index 895e295b18..6ead5cdc73 100644 --- a/xpcom/build/XPCOMInit.cpp +++ b/xpcom/build/XPCOMInit.cpp @@ -111,7 +111,6 @@ extern nsresult nsStringInputStreamConstructor(nsISupports*, REFNSIID, void**); #include "SpecialSystemDirectory.h" #if defined(XP_WIN) -#include "mozilla/WindowsVersion.h" #include "nsWindowsRegKey.h" #endif diff --git a/xpcom/glue/nsThreadUtils.cpp b/xpcom/glue/nsThreadUtils.cpp index 287ada7bef..2f2383fd8a 100644 --- a/xpcom/glue/nsThreadUtils.cpp +++ b/xpcom/glue/nsThreadUtils.cpp @@ -20,15 +20,10 @@ #ifdef XP_WIN #include <windows.h> -#include "mozilla/WindowsVersion.h" -using mozilla::IsVistaOrLater; #elif defined(XP_MACOSX) #include <sys/resource.h> #endif -#include <pratom.h> -#include <prthread.h> - using namespace mozilla; #ifndef XPCOM_GLUE_AVOID_NSPR @@ -443,8 +438,7 @@ nsThreadPoolNaming::SetThreadPoolName(const nsACString& aPoolName, nsAutoLowPriorityIO::nsAutoLowPriorityIO() { #if defined(XP_WIN) - lowIOPrioritySet = IsVistaOrLater() && - SetThreadPriority(GetCurrentThread(), + lowIOPrioritySet = SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN); #elif defined(XP_MACOSX) oldPriority = getiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD); |