]> code.delx.au - gnu-emacs/blobdiff - src/unexw32.c
Add some Authors: headers based on authors.el.
[gnu-emacs] / src / unexw32.c
index 5411cd2a95c3d3a16b8b47532b07a1b8c5b4e4ba..f70cdd794784db778a64b01b678b5c2c350d18d8 100644 (file)
@@ -85,6 +85,13 @@ DWORD_PTR  extra_bss_size_static = 0;
 
 PIMAGE_SECTION_HEADER heap_section;
 
+/* MinGW64 doesn't add a leading underscore to external symbols,
+   whereas configure.ac sets up LD_SWITCH_SYSTEM_TEMACS to force the
+   entry point at __start, with two underscores.  */
+#ifdef __MINGW64__
+#define _start __start
+#endif
+
 /* Startup code for running on NT.  When we are running as the dumped
    version, we need to bootstrap our heap and .bss section into our
    address space before we can actually hand off control to the startup