From: Yaron Keren Date: Sat, 14 Mar 2015 19:20:56 +0000 (+0000) Subject: No need to prototype RtlCaptureContext with mingw-w64. X-Git-Tag: llvmorg-3.7.0-rc1~9229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdae8d6403841650a9d73518a33b2ede8299404e;p=platform%2Fupstream%2Fllvm.git No need to prototype RtlCaptureContext with mingw-w64. llvm-svn: 232269 --- diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index e03a175..c786850 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