From 4bae313f4bb371728fc38d423efdd50e9529fc88 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 10 Apr 2009 17:37:42 +1200 Subject: [PATCH] Author: Guido Serassio Windows port: Fix PSAPI.DLL usage, is always available on Windows NT and later --- src/win32.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/win32.cc diff --git a/src/win32.cc b/src/win32.cc old mode 100644 new mode 100755 index 46f67d89dd..0707b6c622 --- a/src/win32.cc +++ b/src/win32.cc @@ -116,9 +116,8 @@ int WIN32_getrusage(int who, struct rusage *usage) { #if HAVE_WIN32_PSAPI - if ((WIN32_OS_version == _WIN_OS_WINNT) || (WIN32_OS_version == _WIN_OS_WIN2K) - || (WIN32_OS_version == _WIN_OS_WINXP) || (WIN32_OS_version == _WIN_OS_WINNET)) { - /* On Windows NT/2000 call PSAPI.DLL for process Memory */ + if (WIN32_OS_version >= _WIN_OS_WINNT) { + /* On Windows NT and later call PSAPI.DLL for process Memory */ /* informations -- Guido Serassio */ HANDLE hProcess; PROCESS_MEMORY_COUNTERS pmc; -- 2.47.3