diff options
Diffstat (limited to 'lib/System/Win32/Process.inc')
-rw-r--r-- | lib/System/Win32/Process.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/System/Win32/Process.inc b/lib/System/Win32/Process.inc index 5b090da3c2..d5e80b4f19 100644 --- a/lib/System/Win32/Process.inc +++ b/lib/System/Win32/Process.inc @@ -16,7 +16,13 @@ #include <malloc.h> #include <io.h> -#pragma comment(lib, "psapi.lib") +#ifdef __MINGW32__ + #if (HAVE_LIBPSAPI != 1) + #error "libpsapi.a should be present" + #endif +#else + #pragma comment(lib, "psapi.lib") +#endif //===----------------------------------------------------------------------===// //=== WARNING: Implementation here must contain only Win32 specific code |