oleidl.idl must include windows.h and ole2.h if COM_NO_WINDOWS_H
is not defined.
Robert Shearman
rob at codeweavers.com
Wed Oct 18 18:00:10 CDT 2006
Francois Gouget wrote:
> On Wed, 18 Oct 2006, Alexandre Julliard wrote:
>
>
>> Francois Gouget <fgouget at free.fr> writes:
>>
>>
>>> 2) Or modify these sections so they read:
>>>
>>> #if !defined(COM_NO_WINDOWS_H) && !defined(__WINESRC__)
>>> # include <windows.h>
>>> # include <ole2.h>
>>> #endif
>>>
>> I think we want that, otherwise we'll end up having to add
>> COM_NO_WINDOWS_H to pretty much every single source file.
>>
>
> Actually, in the PSDK there seems to be a correlation between
> COM_NO_WINDOWS_H and idl files. It's not 100% but that may be just be
> because they don't ship all the idl files. Also, the COM_NO_WINDOWS_H
> #ifdef is not present in the idl file, suggesting that it is being added
> by midl.
Yes, this is correct.
--
Rob Shearman
More information about the wine-devel
mailing list