Ticket #9566: patch.txt

File patch.txt, 2.0 KB (added by quietust, 8 years ago)
Line 
1diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
2index 2c6a895..03f3d8c 100644
3--- a/devtools/create_project/msbuild.cpp
4+++ b/devtools/create_project/msbuild.cpp
5@@ -427,7 +427,7 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
6 if (isRelease) {
7 properties << "\t\t\t<IntrinsicFunctions>true</IntrinsicFunctions>\n"
8 "\t\t\t<WholeProgramOptimization>true</WholeProgramOptimization>\n"
9- "\t\t\t<PreprocessorDefinitions>WIN32;RELEASE_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
10+ "\t\t\t<PreprocessorDefinitions>WIN32;" << (isWin32 ? "" : "SCUMM_64BITS;") << "RELEASE_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
11 "\t\t\t<StringPooling>true</StringPooling>\n"
12 "\t\t\t<BufferSecurityCheck>false</BufferSecurityCheck>\n"
13 "\t\t\t<DebugInformationFormat></DebugInformationFormat>\n"
14@@ -443,7 +443,7 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
15 "\t\t\t<SetChecksum>true</SetChecksum>\n";
16 } else {
17 properties << "\t\t\t<Optimization>Disabled</Optimization>\n"
18- "\t\t\t<PreprocessorDefinitions>WIN32;" << (configuration == "LLVM" ? "_CRT_SECURE_NO_WARNINGS;" : "") << "%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
19+ "\t\t\t<PreprocessorDefinitions>WIN32;" << (isWin32 ? "" : "SCUMM_64BITS;") << (configuration == "LLVM" ? "_CRT_SECURE_NO_WARNINGS;" : "") << "%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
20 "\t\t\t<MinimalRebuild>true</MinimalRebuild>\n"
21 "\t\t\t<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\n"
22 "\t\t\t<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>\n"