mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
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
This commit is contained in:
parent
c2e4231627
commit
20f78d477e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user