Change to use the Win8 SDK headers despite using the v110_xp toolset

This will allow the use of WRL headers (e.g. for WRL::ComPtr) while maintaining compatibility with XP.
This commit is contained in:
Birunthan Mohanathas 2013-05-01 13:51:21 +03:00
parent 9b28e0285e
commit 799b4e6279
2 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,6 @@
#ifndef __STDAFX_H__ #ifndef __STDAFX_H__
#define __STDAFX_H__ #define __STDAFX_H__
#define _WIN32_IE 0x0600
#define _CRTDBG_MAP_ALLOC #define _CRTDBG_MAP_ALLOC
#include <crtdbg.h> #include <crtdbg.h>

View File

@ -2,7 +2,8 @@
<!-- Visual C++ project options meant to applied after the default Microsoft property sheets. --> <!-- Visual C++ project options meant to applied after the default Microsoft property sheets. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<IncludePath>$(IncludePath);$(ProgramFiles)\Windows Kits\8.0\Include\WinRT</IncludePath> <!-- Use the Win8 SDK headers even though we are using the v110_xp toolset. -->
<IncludePath>$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
@ -26,7 +27,8 @@
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ClCompile> <ClCompile>
<PreprocessorDefinitions>WIN32;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <!-- Set the version macros to 0x0600 (Vista) to avoid using Win8 specific features in the Win8 SDK. -->
<PreprocessorDefinitions>WIN32;_WINDOWS;WINVER=0x0600;_WIN32_WINNT=0x0600;_WIN32_IE=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel> <WarningLevel>Level3</WarningLevel>
</ClCompile> </ClCompile>
<Link> <Link>