Fix mingw/mxe build
authorAndi McClure <andi.mcclure@xamarin.com>
Fri, 5 May 2017 17:29:18 +0000 (13:29 -0400)
committerAndi 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

index e02cdb8b8b25e4069eb0410d71210844740119ae..8314998fbc970f82ca0db4268a9da266b1152972 100644 (file)
 
 #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