projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00dff71
)
Fix mingw/mxe build
author
Andi McClure
<andi.mcclure@xamarin.com>
Fri, 5 May 2017 17:29:18 +0000
(13:29 -0400)
committer
Andi McClure
<andi.mcclure@xamarin.com>
Fri, 5 May 2017 17:29:18 +0000
(13:29 -0400)
wcscat_s is not available on mingw unless a special symbol is defined. Add this symbol to exceptions-amd64.c
mono/mini/exceptions-amd64.c
patch
|
blob
|
history
diff --git
a/mono/mini/exceptions-amd64.c
b/mono/mini/exceptions-amd64.c
index e02cdb8b8b25e4069eb0410d71210844740119ae..8314998fbc970f82ca0db4268a9da266b1152972 100644
(file)
--- a/
mono/mini/exceptions-amd64.c
+++ b/
mono/mini/exceptions-amd64.c
@@
-13,6
+13,11
@@
#include <config.h>
+// Secret password to unlock wcscat_s on mxe, must happen before string.h included
+#ifdef __MINGW32__
+#define MINGW_HAS_SECURE_API 1
+#endif
+
#include <glib.h>
#include <string.h>
@@
-899,6
+904,7
@@
mono_arch_exceptions_init (void)
}
}
+// Implies defined(TARGET_WIN32)
#ifdef MONO_ARCH_HAVE_UNWIND_TABLE
static void