Core/Thread: Fix MinGW compilation in unity build

This commit is contained in:
SirLynix 2023-07-21 12:14:11 +02:00
parent 313be2d0f4
commit 0c6ca52af0
1 changed files with 1 additions and 1 deletions

View File

@ -46,9 +46,9 @@ namespace Nz::PlatformImpl
std::string GetThreadName(ThreadHandle threadHandle)
{
#ifndef NAZARA_COMPILER_MINGW
NAZARA_USE_ANONYMOUS_NAMESPACE
#ifndef NAZARA_COMPILER_MINGW
// Use GetThreadDescription if available
PWSTR namePtr;
static GetThreadDescriptionFunc GetThreadDescription = reinterpret_cast<GetThreadDescriptionFunc>(::GetProcAddress(::GetModuleHandleW(L"Kernel32.dll"), "GetThreadDescription"));