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.
The proposed changes are valid C and C++ syntax so applying them allows us to include the header file without modification.
On Sun, Jun 5, 2022 at 1:42 PM Stefan Dösinger stefandoesinger@gmail.com wrote:
Am 03.06.2022 um 19:15 schrieb Mahdi Tayarani tayarani@google.com:
Using SERVER_START_REQ/SERVER_END_REQ in C++ code calls helper methods which need an explicit cast from a void* to __server_request_info*.
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)