mirror of https://github.com/YosysHQ/nextpnr.git
Fix windows.h being included from within a namespace, which is UB. (#1726)
This commit is contained in:
parent
48c70978b3
commit
ee605e2b18
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue