On 4/15/19 1:20 PM, Alistair Leslie-Hughes wrote:
> Hi Nikolay,
>
> On 15/4/19 3:35 pm, Nikolay Sivov wrote:
>> +cpp_quote("HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_CREATION_OPTIONS options, ")
>> +cpp_quote(" IMFPMediaPlayerCallback *callback, HWND hwnd, IMFPMediaPlayer **player);")
> This need to have extern "C" around the function.
Like Jacek already said, widl will wrap everything in extern "C" block.
That also reminded me, was
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.winehq.org%2Fgit%2Fwine.git%2Fcommit%2F0501ad920afd208d85cf807c9fcec1d4e8245164really&data=02%7C01%7C%7Cce0ed24c599845ebce8f08d6c1b5e7b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636909384348864453&sdata=Ec%2BwZvzOqFyUd%2F4qUS%2BSoghK08FEY4z4ZwdZRp2c8jM%3D&reserved=0
necessary?
Now generated header has nested extern "C".
>
> Regards
>
> Alistair
>
>