diff --git a/openmp/runtime/src/z_Windows_NT_util.cpp b/openmp/runtime/src/z_Windows_NT_util.cpp --- a/openmp/runtime/src/z_Windows_NT_util.cpp +++ b/openmp/runtime/src/z_Windows_NT_util.cpp @@ -24,7 +24,9 @@ #include // UNICODE_STRING #include #include +#ifdef _MSC_VER #pragma comment(lib, "psapi.lib") +#endif enum SYSTEM_INFORMATION_CLASS { SystemProcessInformation = 5