summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Process.inc
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 19:03:21 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 19:03:21 +0000
commit187b4adcfe6c50feb015f1fc6680a01602acfab1 (patch)
treeac30aa0fdee9078aab372443c8e2b29d2e315e9a /llvm/lib/System/Win32/Process.inc
parent5cb722f320417a5a4032154ec30f9143af883a99 (diff)
downloadbcm5719-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.inc8
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
OpenPOWER on IntegriCloud