aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Win32/DynamicLibrary.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
commit48fdf91d0f17b19bb7345156b928689df94d0c6c (patch)
tree91be3a34e7b8d2f68fbbf90bb7b86790373f3634 /lib/System/Win32/DynamicLibrary.inc
parentd386e55e33c600d1a9af9317764f6b3415e3b922 (diff)
Provide configuration support and usage for MINGW32 platform
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/DynamicLibrary.inc')
-rw-r--r--lib/System/Win32/DynamicLibrary.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/System/Win32/DynamicLibrary.inc b/lib/System/Win32/DynamicLibrary.inc
index 310d3dc835..d214ba0e72 100644
--- a/lib/System/Win32/DynamicLibrary.inc
+++ b/lib/System/Win32/DynamicLibrary.inc
@@ -14,12 +14,18 @@
#include "Win32.h"
#ifdef __MINGW32__
-#include <imagehlp.h>
+ #include <imagehlp.h>
#else
-#include <dbghelp.h>
+ #include <dbghelp.h>
#endif
-#pragma comment(lib, "dbghelp.lib")
+#ifdef __MINGW32__
+ #if (HAVE_LIBIMAGEHLP != 1)
+ #error "libimagehlp.a should be present"
+ #endif
+#else
+ #pragma comment(lib, "dbghelp.lib")
+#endif
namespace llvm {
using namespace sys;