Commit d4cf5489 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winebuild: Copy IMAGE_FILE_MACHINE_SPARC from winnt.h and use it.

parent 46f52f77
......@@ -37,6 +37,8 @@
#define IMAGE_FILE_MACHINE_POWERPC 0x01f0
#define IMAGE_FILE_MACHINE_AMD64 0x8664
#define IMAGE_FILE_MACHINE_ARM 0x01C0
/* Wine extension */
#define IMAGE_FILE_MACHINE_SPARC 0x2000
#define IMAGE_SIZEOF_NT_OPTIONAL32_HEADER 224
#define IMAGE_SIZEOF_NT_OPTIONAL64_HEADER 240
......@@ -465,7 +467,7 @@ void output_module( DLLSPEC *spec )
case CPU_x86_64: machine = IMAGE_FILE_MACHINE_AMD64; break;
case CPU_ARM: machine = IMAGE_FILE_MACHINE_ARM; break;
case CPU_POWERPC: machine = IMAGE_FILE_MACHINE_POWERPC; break;
case CPU_SPARC: machine = IMAGE_FILE_MACHINE_UNKNOWN; break;
case CPU_SPARC: machine = IMAGE_FILE_MACHINE_SPARC; break;
}
output( "\t%s 0x%04x\n", /* Machine */
get_asm_short_keyword(), machine );
......@@ -651,7 +653,7 @@ void output_fake_module( DLLSPEC *spec )
case CPU_x86: put_word( IMAGE_FILE_MACHINE_I386 ); break;
case CPU_x86_64: put_word( IMAGE_FILE_MACHINE_AMD64 ); break;
case CPU_POWERPC: put_word( IMAGE_FILE_MACHINE_POWERPC ); break;
case CPU_SPARC: put_word( IMAGE_FILE_MACHINE_UNKNOWN ); break;
case CPU_SPARC: put_word( IMAGE_FILE_MACHINE_SPARC ); break;
case CPU_ARM: put_word( IMAGE_FILE_MACHINE_ARM ); break;
}
put_word( nb_sections ); /* NumberOfSections */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment