[llvm] r231933 - Wrap in __MINGW32__ to avoid warnings from msvc.

Benjamin Kramer benny.kra at googlemail.com
Wed Mar 11 09:09:03 PDT 2015


Author: d0k
Date: Wed Mar 11 11:09:02 2015
New Revision: 231933

URL: http://llvm.org/viewvc/llvm-project?rev=231933&view=rev
Log:
Wrap in __MINGW32__ to avoid warnings from msvc.

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=231933&r1=231932&r2=231933&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Wed Mar 11 11:09:02 2015
@@ -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(voi
 /// 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));





More information about the llvm-commits mailing list