This patch moves MEMORY_PRIORITY_ defines outside a _WIN32_WINNT #if
check to match Microsoft's definitions, which are in winnt.h and not
behind any version #ifs.

-tom
From 84d449158871f8bdd2bb1969b71261d5183d3b38 Mon Sep 17 00:00:00 2001
From: Tom Ritter <[email protected]>
Date: Thu, 20 Jun 2019 11:41:52 -0700
Subject: [PATCH 1/2] Move MEMORY_PRIORITY_ defines outside a _WIN32_WINNT #if
 check to match Microsoft's definitions.

---
 mingw-w64-headers/include/processthreadsapi.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/mingw-w64-headers/include/processthreadsapi.h 
b/mingw-w64-headers/include/processthreadsapi.h
index b34c87c6..7adafcd2 100644
--- a/mingw-w64-headers/include/processthreadsapi.h
+++ b/mingw-w64-headers/include/processthreadsapi.h
@@ -169,14 +169,14 @@ WINBASEAPI WINBOOL WINAPI TerminateProcess (HANDLE 
hProcess, UINT uExitCode);
   typedef struct _MEMORY_PRIORITY_INFORMATION {
     ULONG MemoryPriority;
   } MEMORY_PRIORITY_INFORMATION, *PMEMORY_PRIORITY_INFORMATION;
-
-  #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
 
+#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
 
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
-- 
2.20.1 (Apple Git-117)

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to