diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker index 237f5904b63..1eaeb565dce 100755 --- a/tools/winapi/msvcmaker +++ b/tools/winapi/msvcmaker @@ -628,10 +628,10 @@ sub _generate_dsp($$) { if($debug) { if($lib || $exe) { print OUT "# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od"; - @defines = (qw(WIN32 _DEBUG _MBCS _LIB)); + @defines = (qw(WINVER=0x0501 _WIN32_WINNT=0x0501 _WIN32_IE=0x0600 WIN32 _DEBUG _MBCS _LIB)); } else { print OUT "# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od"; - @defines = (qw(_WIN32_WINNT=0x0501 _WIN32_IE=0x0600 WIN32 _DEBUG _WINDOWS _MBCS _USRDLL), ("\U${project}\E_EXPORTS")); + @defines = (qw(WINVER=0x0501 _WIN32_WINNT=0x0501 _WIN32_IE=0x0600 WIN32 _DEBUG _WINDOWS _MBCS _USRDLL), ("\U${project}\E_EXPORTS")); } } else { if($lib || $exe) {