projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f141a55
)
No need to prototype RtlCaptureContext with mingw-w64.
author
Yaron Keren
<yaron.keren@gmail.com>
Sat, 14 Mar 2015 19:20:56 +0000
(19:20 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Sat, 14 Mar 2015 19:20:56 +0000
(19:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232269
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/Signals.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Signals.inc
b/lib/Support/Windows/Signals.inc
index e03a1756c680250bf795eee90081e8b6e68d39b2..c786850c997df67c4d63fed4f7404a95c924c50f 100644
(file)
--- a/
lib/Support/Windows/Signals.inc
+++ b/
lib/Support/Windows/Signals.inc
@@
-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