diff options
author | Brad King <brad.king@kitware.com> | 2015-06-15 13:56:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-15 13:58:29 (GMT) |
commit | 83af11d4112443ed732cd240eb0bfdfd27048825 (patch) | |
tree | ff429535c5b71a8761d6c9ed0c6b2027a1a3ecc1 /Source/cmQtAutoGenerators.cxx | |
parent | 84672a84097444e1c280ec40d2a77f905cdb09cb (diff) | |
download | CMake-83af11d4112443ed732cd240eb0bfdfd27048825.zip CMake-83af11d4112443ed732cd240eb0bfdfd27048825.tar.gz CMake-83af11d4112443ed732cd240eb0bfdfd27048825.tar.bz2 |
Fix preprocessor checks WIN32 => _WIN32
The latter is predefined by Windows toolchains and is more reliable.
Reported-by: Michael Stürmer <michael.stuermer@schaeffler.com>
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index ef32c75..f472ed8 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -609,7 +609,7 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget const* target) // Ensure we have write permission in case .in was read-only. mode_t perm = 0; -#if defined(WIN32) && !defined(__CYGWIN__) +#if defined(_WIN32) && !defined(__CYGWIN__) mode_t mode_write = S_IWRITE; #else mode_t mode_write = S_IWUSR; |