diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 19:03:21 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 19:03:21 +0000 |
| commit | 187b4adcfe6c50feb015f1fc6680a01602acfab1 (patch) | |
| tree | ac30aa0fdee9078aab372443c8e2b29d2e315e9a /llvm/lib/System/Win32/Process.inc | |
| parent | 5cb722f320417a5a4032154ec30f9143af883a99 (diff) | |
| download | bcm5719-llvm-187b4adcfe6c50feb015f1fc6680a01602acfab1.tar.gz bcm5719-llvm-187b4adcfe6c50feb015f1fc6680a01602acfab1.zip | |
Provide configuration support and usage for MINGW32 platform
llvm-svn: 28639
Diffstat (limited to 'llvm/lib/System/Win32/Process.inc')
| -rw-r--r-- | llvm/lib/System/Win32/Process.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Process.inc b/llvm/lib/System/Win32/Process.inc index 5b090da3c2e..d5e80b4f19c 100644 --- a/llvm/lib/System/Win32/Process.inc +++ b/llvm/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 |

