From 9f6a4a5bb8c411998b74da7b4702fec803560ef3 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Sat, 14 Mar 2015 19:20:56 +0000 Subject: [PATCH] No need to prototype RtlCaptureContext with mingw-w64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232269 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Signals.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index e03a1756c68..c786850c997 100644 --- a/lib/Support/Windows/Signals.inc +++ b/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 -- 2.34.1