mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Wrap in __MINGW32__ to avoid warnings from msvc.
llvm-svn: 231933
This commit is contained in:
parent
7b9e4d7ca3
commit
2540a3451e
@ -387,8 +387,10 @@ void sys::PrintStackTraceOnErrorSignal() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __MINGW32__
|
||||
// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
|
||||
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
|
||||
#endif
|
||||
|
||||
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
||||
|
||||
@ -422,7 +424,7 @@ void llvm::sys::SetInterruptFunction(void (*IF)()) {
|
||||
/// AddSignalHandler - Add a function to be called when a signal is delivered
|
||||
/// to the process. The handler can have a cookie passed to it to identify
|
||||
/// what instance of the handler it is.
|
||||
void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
|
||||
void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
|
||||
if (CallBacksToRun == 0)
|
||||
CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
|
||||
CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
|
||||
|
Loading…
Reference in New Issue
Block a user