Correctly define WINVER, _WIN32_WINNT and _WIN32_IE versions in all
cases.
This commit is contained in:
parent
e6fb678c4e
commit
c7545d2b1c
|
@ -628,10 +628,10 @@ sub _generate_dsp($$) {
|
||||||
if($debug) {
|
if($debug) {
|
||||||
if($lib || $exe) {
|
if($lib || $exe) {
|
||||||
print OUT "# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od";
|
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 {
|
} else {
|
||||||
print OUT "# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od";
|
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 {
|
} else {
|
||||||
if($lib || $exe) {
|
if($lib || $exe) {
|
||||||
|
|
Loading…
Reference in New Issue