<div dir="ltr">We need to include "include/wine/server.h" as it contains the definition for the SERVER_START_REQ/SERVER_END_REQ macros. Our code (written in C++) needs to make a Wine Server call so we have to include that header. But by doing so we run into compilation issues.<div><br></div><div>The proposed changes are valid C and C++ syntax so applying them allows us to include the header file without modification.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 5, 2022 at 1:42 PM Stefan Dösinger <<a href="mailto:stefandoesinger@gmail.com" target="_blank">stefandoesinger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> Am 03.06.2022 um 19:15 schrieb Mahdi Tayarani <<a href="mailto:tayarani@google.com" target="_blank">tayarani@google.com</a>>:<br>
> <br>
> Using SERVER_START_REQ/SERVER_END_REQ in C++ code calls helper methods<br>
> which need an explicit cast from a void* to __server_request_info*.<br>
<br>
Why do you need this? include/wine/server.h (and pretty much everything in include/wine/) is a private header that should not be used by external code (e.g. programs linking to winelib)<br>
<br>
</blockquote></div>