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