changeset 78168:5d5dea23e4fd

(IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): Define if not defined.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 20 Jul 2007 19:19:59 +0000
parents 252b7f091c04
children c5d961ab8f03
files src/w32proc.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32proc.c	Fri Jul 20 06:54:40 2007 +0000
+++ b/src/w32proc.c	Fri Jul 20 19:19:59 2007 +0000
@@ -590,6 +590,13 @@
   return pid;
 }
 
+/* Old versions of w32api headers don't have separate 32-bit and
+   64-bit defines, but the one they have matches the 32-bit variety.  */
+#ifndef IMAGE_NT_OPTIONAL_HDR32_MAGIC
+# define IMAGE_NT_OPTIONAL_HDR32_MAGIC IMAGE_NT_OPTIONAL_HDR_MAGIC
+# define IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER
+#endif
+
 void
 w32_executable_type (char * filename, int * is_dos_app, int * is_cygnus_app, int * is_gui_app)
 {