summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-03-14 19:20:56 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-03-14 19:20:56 +0000
commitbdae8d6403841650a9d73518a33b2ede8299404e (patch)
tree23b0c9ba19bc83537e9bb41c7d3b25b824d4677d /llvm/lib/Support/Windows
parentec9d3f779a2265a07ca9ce7ad472f03528318972 (diff)
downloadbcm5719-llvm-bdae8d6403841650a9d73518a33b2ede8299404e.tar.gz
bcm5719-llvm-bdae8d6403841650a9d73518a33b2ede8299404e.zip
No need to prototype RtlCaptureContext with mingw-w64.
llvm-svn: 232269
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index e03a1756c68..c786850c997 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -387,8 +387,9 @@ void sys::PrintStackTraceOnErrorSignal() {
}
}
-#ifdef __MINGW32__
-// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
+#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
+// Provide a prototype for RtlCaptureContext, mingw32 from mingw.org is
+// missing it but mingw-w64 has it.
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
#endif
OpenPOWER on IntegriCloud