Fix compilation with MinGW

This commit is contained in:
Lynix 2017-10-18 22:02:36 +02:00
parent be38aee1fa
commit 0e45876b89
1 changed files with 7 additions and 3 deletions

View File

@ -63,6 +63,7 @@ namespace Nz
void ThreadImpl::SetThreadName(DWORD threadId, const char* threadName)
{
#ifdef NAZARA_COMPILER_MSVC
// https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
constexpr DWORD MS_VC_EXCEPTION = 0x406D1388;
@ -82,6 +83,9 @@ namespace Nz
{
}
#pragma warning(pop)
#else
NazaraWarning("SetThreadName on Windows is only supported with MSVC for now");
#endif
}
unsigned int __stdcall ThreadImpl::ThreadProc(void* userdata)