From 926ac4822445c5cd9c879bce77c5f4893259cbed Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 4 Nov 2017 23:15:55 +0000 Subject: [PATCH] Move to VS2017 Signed-off-by: Adrian Conlon --- Intel8080/src/Intel8080.vcxproj | 16 ++++++++-------- inc/IntelProcessor.h | 9 +++++++++ inc/Processor.h | 1 - inc/TestHarness.h | 4 +++- src/EightBit.vcxproj | 8 ++++---- 5 files changed, 24 insertions(+), 14 deletions(-) diff --git a/Intel8080/src/Intel8080.vcxproj b/Intel8080/src/Intel8080.vcxproj index edde4df..08c4ffd 100644 --- a/Intel8080/src/Intel8080.vcxproj +++ b/Intel8080/src/Intel8080.vcxproj @@ -29,26 +29,26 @@ StaticLibrary true - v140 + v141 Unicode StaticLibrary false - v140 + v141 true Unicode StaticLibrary true - v140 + v141 Unicode StaticLibrary false - v140 + v141 true Unicode @@ -71,16 +71,16 @@ - ..\inc;..\..\inc;C:\Libraries\boost_1_63_0;$(IncludePath) + ..\inc;..\..\inc;C:\Libraries\boost_1_65_1;$(IncludePath) - ..\inc;..\..\inc;C:\Libraries\boost_1_63_0;$(IncludePath) + ..\inc;..\..\inc;C:\Libraries\boost_1_65_1;$(IncludePath) - ..\inc;..\..\inc;C:\Libraries\boost_1_63_0;$(IncludePath) + ..\inc;..\..\inc;C:\Libraries\boost_1_65_1;$(IncludePath) - ..\inc;..\..\inc;C:\Libraries\boost_1_63_0;$(IncludePath) + ..\inc;..\..\inc;C:\Libraries\boost_1_65_1;$(IncludePath) diff --git a/inc/IntelProcessor.h b/inc/IntelProcessor.h index 73590a9..2147b9f 100644 --- a/inc/IntelProcessor.h +++ b/inc/IntelProcessor.h @@ -6,6 +6,15 @@ #include "Processor.h" #include "Register.h" +#ifdef _MSC_VER +#include +#endif + +#ifdef __GNUG__ +#include +#define __popcnt __builtin_popcount +#endif + namespace EightBit { class Bus; diff --git a/inc/Processor.h b/inc/Processor.h index f762918..af985ef 100644 --- a/inc/Processor.h +++ b/inc/Processor.h @@ -10,7 +10,6 @@ #endif #ifdef __GNUG__ -# define __popcnt __builtin_popcount # define UNREACHABLE __builtin_unreachable(); #endif diff --git a/inc/TestHarness.h b/inc/TestHarness.h index fac13c0..c26a3ed 100644 --- a/inc/TestHarness.h +++ b/inc/TestHarness.h @@ -6,7 +6,9 @@ #ifdef _MSC_VER #include -#else +#endif + +#ifdef __GNUG__ #include #endif diff --git a/src/EightBit.vcxproj b/src/EightBit.vcxproj index b9c05b1..737c496 100644 --- a/src/EightBit.vcxproj +++ b/src/EightBit.vcxproj @@ -29,27 +29,27 @@ StaticLibrary true Unicode - v140 + v141 StaticLibrary false true Unicode - v140 + v141 StaticLibrary true Unicode - v140 + v141 StaticLibrary false true Unicode - v140 + v141