Merge pull request #1642 from JunielKatarn/vc-14.2
Make code base compatible with Visual Studio 2019.
This commit is contained in:
commit
37362c7ade
|
@ -2,7 +2,8 @@
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
<PropertyGroup Label="Configuration">
|
<PropertyGroup Label="Configuration">
|
||||||
<PlatformToolset Condition="'$(DefaultPlatformToolset)'!=''">$(DefaultPlatformToolset)_xp</PlatformToolset>
|
<PlatformToolset Condition="'$(DefaultPlatformToolset)'!='' AND '$(DefaultPlatformToolset)'!='v142'">$(DefaultPlatformToolset)_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(DefaultPlatformToolset)'=='v142'">$(DefaultPlatformToolset)</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ImportGroup Label="PropertySheets">
|
<ImportGroup Label="PropertySheets">
|
||||||
|
|
|
@ -64,7 +64,12 @@ bool CBreakpoints::WBPAdd(uint32_t address)
|
||||||
bool CBreakpoints::AddExecution(uint32_t address, bool bTemporary)
|
bool CBreakpoints::AddExecution(uint32_t address, bool bTemporary)
|
||||||
{
|
{
|
||||||
PreUpdateBP();
|
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)
|
if (!res.second && !bTemporary)
|
||||||
{
|
{
|
||||||
res.first->second = true;
|
res.first->second = true;
|
||||||
|
|
Loading…
Reference in New Issue