import -ko -b 1.1.3 XEmacs XEmacs-21_2 r21-2-35
[chise/xemacs-chise.git.1] / src / unexcw.c
index 6d65e61..8312e20 100644 (file)
@@ -21,7 +21,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 */
 
 /* This is a complete rewrite, some code snarfed from unexnt.c and
-   unexec.c, Andy Piper (andyp@parallax.co.uk) 13-1-98 */
+   unexec.c, Andy Piper (andy@xemacs.org) 13-1-98 */
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -39,8 +39,9 @@ unexec (char *, char *, void *, void *,       void *)
 }
 #else
 
-#undef CONST
-#include <windows.h>
+#ifndef MAX_PATH
+#define MAX_PATH 260
+#endif
 #include <a.out.h>
 
 #define ALLOC_UNIT 0xFFFF
@@ -81,6 +82,9 @@ if (lseek(a_out, 0, SEEK_CUR) != a) \
   exit(-1); \
 }
 
+void
+unexec (char *out_name, char *in_name, void *start_data, 
+       void * d1, void * d2);
 /* Dump out .data and .bss sections into a new executable.  */
 void unexec (char *out_name, char *in_name, void *start_data, 
             void * d1, void * d2)