Hi Tom,

I committed specstrings.h patch.

On 5/22/19 6:12 PM, Tom Ritter wrote:

+#define_Benign_race_begin_  __pragma(warning(push))
+#define_Benign_race_end_  __pragma(warning(pop))
+#define_No_competing_thread_begin_  __pragma(warning(push))
+#define_No_competing_thread_end_  __pragma(warning(pop))


I'm not sure how portable __pragma is, but since you don't modify warnings anyway, I think it would be safer to make those macros no-op as well.



diff --git a/mingw-w64-headers/include/processthreadsapi.h 
b/mingw-w64-headers/include/processthreadsapi.h
index 931a6f13..b34c87c6 100644
--- a/mingw-w64-headers/include/processthreadsapi.h
+++ b/mingw-w64-headers/include/processthreadsapi.h
@@ -165,6 +165,16 @@ WINBASEAPI WINBOOL WINAPI TerminateProcess (HANDLE 
hProcess, UINT uExitCode);
    {
      return (HANDLE)(LONG_PTR) (-6);
    }
+
+  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


It looks good, but we already have those in winbase.h (where I older SDKs had it probably). Please remove them from winbase.h.


Thanks,

Jacek


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

Reply via email to