I am working with Win7 x64 system; multiple VC++ and C# projects and have moved from VS2008 to VS2012. Now I am getting warnings saying:-
--------------------
warning C4005: '__on_failure' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h 2883
warning C4005: '__useHeader' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h 2872
warning C4005: '__useHeader' : macro redefinition c:\program files\microsoft sdks\windows\v7.1\include\sal_supp.h 58
I have already tried changing platform toolset to v110_xp but its not working
When I added #undef code to the concerned files error was gone but that is not the way to do it.
Also I saw changing SDK include directory from v7.1A to $(WindowsSDK_IncludePath) 8.0 but didn't understand how to do it.