summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCameron <cameron@moodycamel.com>2019-11-13 02:13:36 (GMT)
committerGitHub <noreply@github.com>2019-11-13 02:13:36 (GMT)
commit48a8a7ae95f10d70a4c2f117df820e9ce5f4a0f2 (patch)
tree442747cd880f21eb6eb961f90395062b9284e74c /src
parentde6485646ddf3248871e1af6dcd1de180742b8e6 (diff)
downloadNinja-48a8a7ae95f10d70a4c2f117df820e9ce5f4a0f2.zip
Ninja-48a8a7ae95f10d70a4c2f117df820e9ce5f4a0f2.tar.gz
Ninja-48a8a7ae95f10d70a4c2f117df820e9ce5f4a0f2.tar.bz2
Use symbolic constant as suggested in code review
Co-Authored-By: Takuto Ikuta <atetubou@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 7893f61..ba63ab3 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -481,7 +481,7 @@ string StripAnsiEscapeCodes(const string& in) {
int GetProcessorCount() {
#ifdef _WIN32
-#if _WIN32_WINNT >= 0x0601
+#if _WIN32_WINNT >= _WIN32_WINNT_WIN7
// Need to use GetLogicalProcessorInformationEx to get real core count on
// machines with >64 cores. See https://stackoverflow.com/a/31209344/21475
DWORD len = 0;