Fix windows.h being included from within a namespace, which is UB. (#1726)

This commit is contained in:
William D. Jones 2026-05-21 04:55:24 -04:00 committed by GitHub
parent 48c70978b3
commit ee605e2b18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()