16 Nov
2018
16 Nov
'18
11:16 a.m.
Hi Jacek, Thanks for your feedback. On Thu, Nov 15, 2018 at 7:06 PM Jacek Caban <jacek(a)codeweavers.com> wrote:
Also could we just guard RPC includes with #ifdef _WIN32 instead? This wouldn't need a new command line option and would just make all generated headers usable on non-windows builds (at least to the same extend as --no-rpc-includes does). You could then use identical header in Wine and vkd3d.
#ifdef _WIN32 works for me, if that is acceptable change for all headers generated by widl. However, note that Wine code isn't compiled with _WIN32. We might need to use e.g. #if defined(_WIN32) || defined(__WINESRC__).