diff options
author | Cameron Desrochers <Cameron.Desrochers@octasic.com> | 2019-11-13 17:17:31 (GMT) |
---|---|---|
committer | Cameron Desrochers <Cameron.Desrochers@octasic.com> | 2019-11-13 17:17:31 (GMT) |
commit | 9d502da06d179d598c2167ca0b97756e19d687c2 (patch) | |
tree | 3aee217ecf32c2ce3008da70ac4431042c215f7c /src | |
parent | 48a8a7ae95f10d70a4c2f117df820e9ce5f4a0f2 (diff) | |
download | Ninja-9d502da06d179d598c2167ca0b97756e19d687c2.zip Ninja-9d502da06d179d598c2167ca0b97756e19d687c2.tar.gz Ninja-9d502da06d179d598c2167ca0b97756e19d687c2.tar.bz2 |
Removed unnecessary #ifdef following code review
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc index ba63ab3..ac4f247 100644 --- a/src/util.cc +++ b/src/util.cc @@ -481,7 +481,6 @@ string StripAnsiEscapeCodes(const string& in) { int GetProcessorCount() { #ifdef _WIN32 -#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; @@ -506,7 +505,7 @@ int GetProcessorCount() { return cores; } } -#endif + // fallback just in case return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); #else #ifdef CPU_COUNT |