aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-12-06 14:42:04 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2016-12-14 09:09:52 +0000
commit872d03f2a1177f4afb09ebd32e8d4acef685b310 (patch)
treef8019969e6cb2d3335825f4cf8f4162da97b5ea8
parent04d1e32b4c83b4a47548a9d52af289e24cb375ea (diff)
MSVC: Add "WIN32" to the list of platform defines
This macro is set when building with Visual Studio and is often used interchangeably with the compiler define "_WIN32" by developers when testing for the platform. Change-Id: I4e14ffae162793bd8559796b449e26a3899d8cc8 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r--share/qbs/modules/cpp/windows-msvc.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/windows-msvc.qbs b/share/qbs/modules/cpp/windows-msvc.qbs
index 7ac0f234c..7051f33fd 100644
--- a/share/qbs/modules/cpp/windows-msvc.qbs
+++ b/share/qbs/modules/cpp/windows-msvc.qbs
@@ -59,6 +59,7 @@ CppModule {
windowsApiCharacterSet: "unicode"
platformDefines: base.concat(WindowsUtils.characterSetDefines(windowsApiCharacterSet))
+ .concat("WIN32")
platformCommonCompilerFlags: {
var flags = base;
if (compilerVersionMajor >= 18) // 2013