(detect_coding_iso2022): Do not exclude posibility of
[bpt/emacs.git] / src / unexw32.c
index 4391a89..ef4ed56 100644 (file)
@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA.
 
 extern BOOL ctrl_c_handler (unsigned long type);
 
-#include "ntheap.h"
+#include "w32heap.h"
 
 /* A convenient type for keeping all the info about a mapped file together.  */
 typedef struct file_data {
@@ -39,6 +39,10 @@ typedef struct file_data {
     unsigned char *file_base;
 } file_data;
 
+/* Force zero initialized variables to be placed in the .data segment;
+   MSVC 5.0 otherwise places them in .bss, which breaks the dumping code.  */
+#pragma data_seg(".data")
+
 /* Basically, our "initialized" flag.  */
 BOOL need_to_recreate_heap = FALSE;