[PATCH 1/3] Compile oleaut32 for win32 but not for win64

Pavel Roskin proski at gnu.org
Tue Oct 3 16:39:22 CDT 2006


Hello, James!

On Tue, 2006-10-03 at 14:14 -0700, James Hawkins wrote:
> On 10/3/06, Pavel Roskin <proski at gnu.org> wrote:
> > From: Pavel Roskin <proski at gnu.org>
> >
> > Compile oleaut32 for win32 but not for win64
> 
> Does win64 not come with oleaut32?  What I'm really asking is, why are
> you making this change?

It fails to compile.  The error is "Invalid build platform for this
stub"

Search for "oleaut32 wine win64" (without quotes) on Google to see
multiple attempts to fix it somehow, for instance here:

http://www.winehq.org/pipermail/wine-patches/2006-June/027745.html

I understand oleaut32 can be fixed for win64, but nobody has done it.

I believe my patch is worth applying because it enables Wine compilation
without applying incorrect hacks to the sources.  Instead, a mechanism
is established to disable some parts of Wine for win64 until they are
ported properly.  We may need it for other files.

The same mechanism is applied to ntdll/tests/generated.c.  I believe we
need ntdll/tests/generated64.c for 64-bit systems.  Unfortunately,
winapi_test generate many warnings, so I'm hesitant to provide my copy
of generated64.c - it may be totally wrong.

Finally, the pad extension is needed to fix assertion failure on
startup.  The patch uses a clever trick to avoid preprocessor
conditions.  Instead, the number of integer and long files is selected
so that the maximal length is 64 on win32 and 96 on win64.

-- 
Regards,
Pavel Roskin




More information about the wine-devel mailing list