From: Benjamin Kramer Date: Wed, 11 Mar 2015 15:41:15 +0000 (+0000) Subject: RtlCaptureContext is absent from the mingw32 headers, provide a prototype. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20f78d477ef5860abdc2628713a19e76ef1e8ca1;p=oota-llvm.git RtlCaptureContext is absent from the mingw32 headers, provide a prototype. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231929 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 497fa4359fc..4f0848ae512 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -385,6 +385,10 @@ void sys::PrintStackTraceOnErrorSignal() { RegisterHandler(); LeaveCriticalSection(&CriticalSection); } +} + +// Provide a prototype for RtlCaptureContext, mingw32 is missing it. +extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord); void llvm::sys::PrintStackTrace(raw_ostream &OS) { @@ -425,7 +429,6 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { RegisterHandler(); LeaveCriticalSection(&CriticalSection); } -} static void Cleanup() { EnterCriticalSection(&CriticalSection);