No need to prototype RtlCaptureContext with mingw-w64.
[oota-llvm.git] / lib / Support / Windows / Signals.inc
index e03a1756c680250bf795eee90081e8b6e68d39b2..c786850c997df67c4d63fed4f7404a95c924c50f 100644 (file)
@@ -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