summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--3rdParty/Boost/SConscript2
-rw-r--r--Swiften/SConscript3
2 files changed, 4 insertions, 1 deletions
diff --git a/3rdParty/Boost/SConscript b/3rdParty/Boost/SConscript
index adb6d4e..a0d6500 100644
--- a/3rdParty/Boost/SConscript
+++ b/3rdParty/Boost/SConscript
@@ -40,7 +40,7 @@ elif env.get("BOOST_BUNDLED", False) :
"LIBS": ["Swiften_Boost"]
}
if env["PLATFORM"] == "win32" :
- env["BOOST_FLAGS"]["CPPDEFINES"] += [("_WIN32_WINNT", "0x0501")]
+ env["BOOST_FLAGS"]["CPPDEFINES"] += [("_WIN32_WINNT", "_WIN32_WINNT_VISTA")]
if env["PLATFORM"] == "cygwin" :
env["BOOST_FLAGS"]["CPPDEFINES"] += ["__USE_W32_SOCKETS"]
diff --git a/Swiften/SConscript b/Swiften/SConscript
index a37767c..29298ca 100644
--- a/Swiften/SConscript
+++ b/Swiften/SConscript
@@ -76,6 +76,9 @@ if env["SCONS_STAGE"] == "flags" :
"FRAMEWORKS": e.get("FRAMEWORKS", []),
}
+ if env["PLATFORM"] == "win32" :
+ env.Append(CPPDEFINES = [("_WIN32_WINNT","_WIN32_WINNT_VISTA") , ("NTDDI_VERSION","NTDDI_VISTA")])
+
################################################################################
# Build
################################################################################