From 0c6ca52af0bbfdfda2521a4882fa995d77f1ca3c Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 21 Jul 2023 12:14:11 +0200 Subject: [PATCH] Core/Thread: Fix MinGW compilation in unity build --- src/Nazara/Core/Win32/ThreadImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));