From 46b7acb69a4f5116826cb1997e6aa6b9fcf20324 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Sun, 4 Jun 2017 23:37:25 +0100 Subject: [PATCH] Sort out shared pre-compiled header usage Signed-off-by: Adrian.Conlon --- Intel8080/src/stdafx.h | 1 + inc/Memory.h | 6 ++++++ src/stdafx.h | 8 +------- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Intel8080/src/stdafx.h b/Intel8080/src/stdafx.h index d3ffbf9..20f89d9 100644 --- a/Intel8080/src/stdafx.h +++ b/Intel8080/src/stdafx.h @@ -11,6 +11,7 @@ #include #include #include +#include #if defined(_M_X64) || defined(_M_IX86 ) # define HOST_LITTLE_ENDIAN diff --git a/inc/Memory.h b/inc/Memory.h index 3a2bd83..d35b0dc 100644 --- a/inc/Memory.h +++ b/inc/Memory.h @@ -4,6 +4,12 @@ #include #include +#if defined(_M_X64) || defined(_M_IX86 ) +# define HOST_LITTLE_ENDIAN +#else +# define HOST_BIG_ENDIAN +#endif + namespace EightBit { typedef union { diff --git a/src/stdafx.h b/src/stdafx.h index d3ffbf9..290d95c 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -10,10 +10,4 @@ #include #include -#include - -#if defined(_M_X64) || defined(_M_IX86 ) -# define HOST_LITTLE_ENDIAN -#else -# define HOST_BIG_ENDIAN -#endif +#include \ No newline at end of file