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