Merge pull request #4799 from xmcclure/mingw-has-secure-api
authorRodrigo Kumpera <kumpera@users.noreply.github.com>
Mon, 8 May 2017 16:07:46 +0000 (12:07 -0400)
committerGitHub <noreply@github.com>
Mon, 8 May 2017 16:07:46 +0000 (12:07 -0400)
Fix mingw/mxe build

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