From f28e7c460d345dad37993571b070ae5ef2507e37 Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Thu, 21 Sep 2023 08:39:43 +0200 Subject: [PATCH 1/2] Force use of windows.h instead of default winnt.h This fixes the "No target Architecture" error when building on windows. The windows.h include needs to be before processthreadapi.h to work properly but clang complains about this --- nano/lib/plat/windows/thread_role.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nano/lib/plat/windows/thread_role.cpp b/nano/lib/plat/windows/thread_role.cpp index 5b0e33442e..eb2029e443 100644 --- a/nano/lib/plat/windows/thread_role.cpp +++ b/nano/lib/plat/windows/thread_role.cpp @@ -1,5 +1,6 @@ #include +#include #include void nano::thread_role::set_os_name (std::string const & thread_name) From a622e3df9979fb8d7769f6bdfbfee0ad0bd859b1 Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:32:24 +0200 Subject: [PATCH 2/2] Removed unnecessary include --- nano/lib/plat/windows/thread_role.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/nano/lib/plat/windows/thread_role.cpp b/nano/lib/plat/windows/thread_role.cpp index eb2029e443..0a02f9f3f6 100644 --- a/nano/lib/plat/windows/thread_role.cpp +++ b/nano/lib/plat/windows/thread_role.cpp @@ -1,7 +1,6 @@ #include #include -#include void nano::thread_role::set_os_name (std::string const & thread_name) {