mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1331171 - Part 3: Remove xpcom checks for Windows Vista. r=froydnj
Also remove the #includes of some unused header files. MozReview-Commit-ID: 6mRoIazEA3j --HG-- extra : rebase_source : 6f96d22543509bf09b684b0bfbfa624eafc58b94
This commit is contained in:
parent
29bbf6d6b2
commit
e3e3523d58
@ -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
|
||||
|
||||
|
@ -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
|
||||
@ -416,8 +411,7 @@ nsThreadPoolNaming::GetNextThreadName(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);
|
||||
|
Loading…
Reference in New Issue
Block a user