diff --git a/src/Nazara/Core/Win32/ThreadImpl.cpp b/src/Nazara/Core/Win32/ThreadImpl.cpp index 84ab5ce52..8efb4b35d 100644 --- a/src/Nazara/Core/Win32/ThreadImpl.cpp +++ b/src/Nazara/Core/Win32/ThreadImpl.cpp @@ -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(::GetProcAddress(::GetModuleHandleW(L"Kernel32.dll"), "GetThreadDescription"));