[llvm] r231929 - RtlCaptureContext is absent from the mingw32 headers, provide a prototype.
Benjamin Kramer
benny.kra at googlemail.com
Wed Mar 11 08:41:15 PDT 2015
Author: d0k
Date: Wed Mar 11 10:41:15 2015
New Revision: 231929
URL: http://llvm.org/viewvc/llvm-project?rev=231929&view=rev
Log:
RtlCaptureContext is absent from the mingw32 headers, provide a prototype.
Modified:
llvm/trunk/lib/Support/Windows/Signals.inc
Modified: llvm/trunk/lib/Support/Windows/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Signals.inc?rev=231929&r1=231928&r2=231929&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Wed Mar 11 10:41:15 2015
@@ -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)
RegisterHandler();
LeaveCriticalSection(&CriticalSection);
}
-}
static void Cleanup() {
EnterCriticalSection(&CriticalSection);
More information about the llvm-commits
mailing list