OLEAUT32: Fix compilation with GCC 4

Hans Leidekker hans at it.vu.nl
Sun Dec 12 10:43:02 CST 2004


I saw that there's a GCC 4.0.0 in Fedora development and tried compiling
Wine with it. There are two files that don't compile because they still use
cast expressions in lvalues (the left hand side of an assignment IIRC). This
was already deprecated in GCC 3 and now in GCC 4 it has become illegal.

The main offender is oaidl_p.c which is a file generated originally by
MIDL. I guess there's little chance that MIDL will output code that GCC 4
can compile and already there are tweaks done to the file to account for
differences in the way MSVC and GCC compile it.

So, before Wine's own IDL compiler can generate this file this patch fixes it
to compile with GCC 4. Note that I gzipped the patch because it is very large.

 -Hans

Changelog:
  Fix compilation with GCC 4.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oleaut32_oaidl_p_c.diff.gz
Type: application/x-gzip
Size: 8966 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041212/3c0e71b8/oleaut32_oaidl_p_c.diff.bin


More information about the wine-patches mailing list