diff --git a/ares/n64/vulkan/parallel-rdp/util/thread_name.cpp b/ares/n64/vulkan/parallel-rdp/util/thread_name.cpp index 91d424fa0..ddb4f12f8 100644 --- a/ares/n64/vulkan/parallel-rdp/util/thread_name.cpp +++ b/ares/n64/vulkan/parallel-rdp/util/thread_name.cpp @@ -22,7 +22,7 @@ #include "thread_name.hpp" -#ifdef __linux__ +#if !defined(_WIN32) #include #else #define WIN32_LEAN_AND_MEAN @@ -34,9 +34,11 @@ namespace Util { void set_current_thread_name(const char *name) { -#ifdef __linux__ +#if defined(__linux__) pthread_setname_np(pthread_self(), name); -#else +#elif defined(__APPLE__) + pthread_setname_np(name); +#elif defined(_WIN32) using PFN_SetThreadDescription = HRESULT (WINAPI *)(HANDLE, PCWSTR); auto module = GetModuleHandleA("kernel32.dll"); PFN_SetThreadDescription SetThreadDescription = module ? reinterpret_cast( @@ -54,4 +56,4 @@ void set_current_thread_name(const char *name) } #endif } -} \ No newline at end of file +}