From 8995d299f22c25eb540f3a28c3b2492ec2059b0d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 6 Mar 2014 14:37:40 -0800 Subject: [PATCH 1/2] windows: move arch defines to base.props --- Source/Core/Common/Common.h | 14 -------------- Source/VSProps/Base.props | 4 +++- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Source/Core/Common/Common.h b/Source/Core/Common/Common.h index 6b1a50b8d3..1f600926ff 100644 --- a/Source/Core/Common/Common.h +++ b/Source/Core/Common/Common.h @@ -101,20 +101,6 @@ private: #endif -// Architecture detection for Windows -// Architecture detection is done in cmake on all other platforms -// Windows is built on only x86/x86_64 -#if _WIN32 || _WIN64 -#define _M_X86 1 -#if _WIN64 -#define _ARCH_64 1 -#define _M_X86_64 1 -#else -#define _ARCH_32 1 -#define _M_X86_32 1 -#endif -#endif - // Windows compatibility #ifndef _WIN32 #include diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 36fe12a6ea..d7c6019ce0 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -57,7 +57,9 @@ false false true - /d2Zi+ /volatile:iso /D PSAPI_VERSION=1 %(AdditionalOptions) + /d2Zi+ /volatile:iso /D PSAPI_VERSION=1 /D _M_X86=1 %(AdditionalOptions) + /D _ARCH_32=1 /D _M_X86_32=1 %(AdditionalOptions) + /D _ARCH_64=1 /D _M_X86_64=1 %(AdditionalOptions) ProgramDatabase