---
 mingw-w64-headers/crt/process.h               | 2 +-
 mingw-w64-headers/include/processthreadsapi.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h
index ca4a7295715b..38a35a6797dc 100644
--- a/mingw-w64-headers/crt/process.h
+++ b/mingw-w64-headers/crt/process.h
@@ -33,7 +33,7 @@ _CRT_BEGIN_C_HEADER
 
   _CRTIMP uintptr_t __cdecl _beginthread(_beginthread_proc_type 
_StartAddress,unsigned _StackSize,void *_ArgList);
   _CRTIMP void __cdecl _endthread(void) __MINGW_ATTRIB_NORETURN;
-  _CRTIMP uintptr_t __cdecl _beginthreadex(void *_Security,unsigned 
_StackSize,_beginthreadex_proc_type _StartAddress,void *_ArgList,unsigned 
_InitFlag,unsigned *_ThrdAddr);
+  _CRTIMP uintptr_t __cdecl _beginthreadex(void *_Security,unsigned 
_StackSize,_beginthreadex_proc_type _StartAddress,void *_ArgList,unsigned 
_InitFlag,unsigned *_ThrdAddr) __MINGW_ATTRIB_NONNULL(6);
   _CRTIMP void __cdecl _endthreadex(unsigned _Retval) __MINGW_ATTRIB_NORETURN;
 
 #ifndef _CRT_TERMINATE_DEFINED
diff --git a/mingw-w64-headers/include/processthreadsapi.h 
b/mingw-w64-headers/include/processthreadsapi.h
index 95403f2dbbde..d4c5e51eb88b 100644
--- a/mingw-w64-headers/include/processthreadsapi.h
+++ b/mingw-w64-headers/include/processthreadsapi.h
@@ -5,6 +5,7 @@
 #ifndef _PROCESSTHREADSAPI_H_
 #define _PROCESSTHREADSAPI_H_
 
+#include <_mingw.h>
 #include <apiset.h>
 #include <apisetcconv.h>
 #include <minwindef.h>
@@ -307,7 +308,7 @@ DEFINE_ENUM_FLAG_OPERATORS(MACHINE_ATTRIBUTES);
 #if _WIN32_WINNT >= 0x0600
   WINBASEAPI VOID WINAPI FlushProcessWriteBuffers (VOID);
 #endif
-  WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES 
lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, 
LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
+  WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES 
lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, 
LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId) 
__MINGW_ATTRIB_NONNULL(6);
   WINBASEAPI WINBOOL WINAPI SetThreadPriority (HANDLE hThread, int nPriority);
   WINBASEAPI int WINAPI GetThreadPriority (HANDLE hThread);
   WINBASEAPI DECLSPEC_NORETURN VOID WINAPI ExitThread (DWORD dwExitCode);
-- 
2.20.1



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

Reply via email to