diff --git a/PropertySheets/Platform.props b/PropertySheets/Platform.props index 3195fec8b..30f3c74a1 100644 --- a/PropertySheets/Platform.props +++ b/PropertySheets/Platform.props @@ -2,7 +2,8 @@ - $(DefaultPlatformToolset)_xp + $(DefaultPlatformToolset)_xp + $(DefaultPlatformToolset) diff --git a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp index 85e76fa1b..86c367b19 100644 --- a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp +++ b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp @@ -64,7 +64,12 @@ bool CBreakpoints::WBPAdd(uint32_t address) bool CBreakpoints::AddExecution(uint32_t address, bool bTemporary) { PreUpdateBP(); - breakpoints_t::_Pairib res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary)); +#if _MSC_VER >= 1920 // Visual Studio 2019 deprecates _Pairib + auto res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary)); +#else + breakpoints_t::_Pairib res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary)); +#endif // _MSC_VER + if (!res.second && !bTemporary) { res.first->second = true;