Fix windows.h being included from within a namespace, which is UB.

This commit is contained in:
William D. Jones 2026-05-20 21:57:06 -04:00
parent 48c70978b3
commit 24e42ecf1f
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,6 @@
#endif
#endif
NEXTPNR_NAMESPACE_BEGIN
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
@ -48,6 +46,8 @@ BOOL WINAPI WinHandler(DWORD dwCtrlType)
}
#endif
NEXTPNR_NAMESPACE_BEGIN
namespace {
#ifdef __linux__
std::string get_backtrace_str()