From a4b9a4d9da9c9479eb1e63c8b8157aa4209c627c Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Thu, 21 Nov 2019 19:31:04 +0300 Subject: [PATCH] Fix compilation for Windows 7 with MinGW --- src/base/bittorrent/session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index f306da2a2..4bcf5e52d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2924,6 +2924,13 @@ void Session::applyOSMemoryPriority() const { ULONG MemoryPriority; }; + +#define MEMORY_PRIORITY_LOWEST 0 +#define MEMORY_PRIORITY_VERY_LOW 1 +#define MEMORY_PRIORITY_LOW 2 +#define MEMORY_PRIORITY_MEDIUM 3 +#define MEMORY_PRIORITY_BELOW_NORMAL 4 +#define MEMORY_PRIORITY_NORMAL 5 #endif MEMORY_PRIORITY_INFORMATION prioInfo {};