]> git.eshelyaron.com Git - emacs.git/commitdiff
(IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): Define
authorEli Zaretskii <eliz@gnu.org>
Fri, 20 Jul 2007 19:20:58 +0000 (19:20 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 20 Jul 2007 19:20:58 +0000 (19:20 +0000)
if not defined.

src/ChangeLog
src/w32proc.c

index af13ba0f3032262559e44c237d6c99853bdc42b1..a9303a47d6e555c5ed6681ca15707f4252c39d45 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
+       Define if not defined.
+
 2007-07-18  Jason Rumney  <jasonr@gnu.org>
 
        * w32proc.c (w32_executable_type): Handle 64 bit executables.
index 7d1717792abae88924d44197d24fa0ab605098d1..8c99a0a1dffd82116de917d004dc2d51b640d411 100644 (file)
@@ -590,6 +590,13 @@ get_result:
   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)
 {