aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-01-16 19:38:22 +0000
committerJohannes Schickel2011-01-16 19:38:22 +0000
commitc0434258f9459187711ab24bd1441567c5675bb7 (patch)
tree88df81bb528b8597b4f013d1b425afaf3e284211
parent84cda62d1f91899674dc3458b21fa66dbdc2935c (diff)
downloadscummvm-rg350-c0434258f9459187711ab24bd1441567c5675bb7.tar.gz
scummvm-rg350-c0434258f9459187711ab24bd1441567c5675bb7.tar.bz2
scummvm-rg350-c0434258f9459187711ab24bd1441567c5675bb7.zip
TOOLS: Fix Win64 MSVC project files.
This is done by adding the "SDL_BACKEND" define to x64 MSVC project files, otherwise linker errors would occur, since certain SDL code would not get compiled. svn-id: r55266
-rw-r--r--tools/create_project/msvc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/create_project/msvc.cpp b/tools/create_project/msvc.cpp
index fa1e405557..9745cffdd2 100644
--- a/tools/create_project/msvc.cpp
+++ b/tools/create_project/msvc.cpp
@@ -139,6 +139,10 @@ void MSVCProvider::createGlobalProp(const BuildSetup &setup) {
StringList x64EngineDefines = getEngineDefines(setup.engines);
x64Defines.splice(x64Defines.end(), x64EngineDefines);
+ // HACK: This definitly should not be here, but otherwise we would not define SDL_BACKEND for x64.
+ x64Defines.push_back("WIN32");
+ x64Defines.push_back("SDL_BACKEND");
+
outputGlobalPropFile(properties, 64, x64Defines, convertPathToWin(setup.filePrefix));
}