[llvm] r232269 - No need to prototype RtlCaptureContext with mingw-w64.
Yaron Keren
yaron.keren at gmail.com
Sat Mar 14 12:20:59 PDT 2015
Author: yrnkrn
Date: Sat Mar 14 14:20:56 2015
New Revision: 232269
URL: http://llvm.org/viewvc/llvm-project?rev=232269&view=rev
Log:
No need to prototype RtlCaptureContext with mingw-w64.
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=232269&r1=232268&r2=232269&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Sat Mar 14 14:20:56 2015
@@ -387,8 +387,9 @@ void sys::PrintStackTraceOnErrorSignal()
}
}
-#ifdef __MINGW32__
-// Provide a prototype for RtlCaptureContext, mingw32 is missing it.
+#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
+// Provide a prototype for RtlCaptureContext, mingw32 from mingw.org is
+// missing it but mingw-w64 has it.
extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
#endif
More information about the llvm-commits
mailing list