Bump _WIN32_WINNT to Vista

This commit is contained in:
Thomas Goyne 2018-11-22 12:23:58 -08:00 committed by Ryan Lucia
parent 6496414e61
commit f99711aca8
4 changed files with 4 additions and 3 deletions

View File

@ -126,6 +126,7 @@
<ClCompile> <ClCompile>
<PreprocessorDefinitions> <PreprocessorDefinitions>
NOMINMAX; NOMINMAX;
_WIN32_WINNT=0x0602;
%(PreprocessorDefinitions) %(PreprocessorDefinitions)
</PreprocessorDefinitions> </PreprocessorDefinitions>
<AdditionalIncludeDirectories> <AdditionalIncludeDirectories>

View File

@ -32,7 +32,7 @@
_LARGEFILE_SOURCE; _LARGEFILE_SOURCE;
_SYSCRT; _SYSCRT;
_USE_MATH_DEFINES; _USE_MATH_DEFINES;
_WIN32_WINNT=0x0502; _WIN32_WINNT=0x0602;
inline=__inline; inline=__inline;
%(PreprocessorDefinitions) %(PreprocessorDefinitions)
</PreprocessorDefinitions> </PreprocessorDefinitions>

View File

@ -23,7 +23,7 @@
</AdditionalIncludeDirectories> </AdditionalIncludeDirectories>
<PreprocessorDefinitions> <PreprocessorDefinitions>
NOMINMAX; NOMINMAX;
_WIN32_WINNT=0x0501; _WIN32_WINNT=0x0602;
_CRT_NONSTDC_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE;
WITH_UCHARDET; WITH_UCHARDET;
%(PreprocessorDefinitions) %(PreprocessorDefinitions)

View File

@ -25,10 +25,10 @@
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
namespace {
#include <Shlobj.h> #include <Shlobj.h>
#include <Shellapi.h> #include <Shellapi.h>
namespace {
agi::fs::path WinGetFolderPath(int folder) { agi::fs::path WinGetFolderPath(int folder) {
wchar_t path[MAX_PATH+1] = {0}; wchar_t path[MAX_PATH+1] = {0};
if (FAILED(SHGetFolderPathW(0, folder, 0, 0, path))) if (FAILED(SHGetFolderPathW(0, folder, 0, 0, path)))