summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Signals.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/Signals.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/Signals.inc')
-rw-r--r--llvm/lib/System/Win32/Signals.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/System/Win32/Signals.inc b/llvm/lib/System/Win32/Signals.inc
index 333e387dea1..a44c034ba1d 100644
--- a/llvm/lib/System/Win32/Signals.inc
+++ b/llvm/lib/System/Win32/Signals.inc
@@ -16,14 +16,20 @@
#include <vector>
#ifdef __MINGW32__
-#include <imagehlp.h>
+ #include <imagehlp.h>
#else
-#include <dbghelp.h>
+ #include <dbghelp.h>
#endif
#include <psapi.h>
-#pragma comment(lib, "psapi.lib")
-#pragma comment(lib, "dbghelp.lib")
+#ifdef __MINGW32__
+ #if ((HAVE_LIBIMAGEHLP != 1) || (HAVE_LIBPSAPI != 1))
+ #error "libimagehlp.a & libpsapi.a should be present"
+ #endif
+#else
+ #pragma comment(lib, "psapi.lib")
+ #pragma comment(lib, "dbghelp.lib")
+#endif
// Forward declare.
static LONG WINAPI LLVMUnhandledExceptionFilter(LPEXCEPTION_POINTERS ep);
OpenPOWER on IntegriCloud