mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +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:
@ -385,6 +385,10 @@ void sys::PrintStackTraceOnErrorSignal() {
|
|||||||
RegisterHandler();
|
RegisterHandler();
|
||||||
LeaveCriticalSection(&CriticalSection);
|
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) {
|
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
||||||
|
|
||||||
@ -425,7 +429,6 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
|
|||||||
RegisterHandler();
|
RegisterHandler();
|
||||||
LeaveCriticalSection(&CriticalSection);
|
LeaveCriticalSection(&CriticalSection);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void Cleanup() {
|
static void Cleanup() {
|
||||||
EnterCriticalSection(&CriticalSection);
|
EnterCriticalSection(&CriticalSection);
|
||||||
|
Reference in New Issue
Block a user