https://bugs.winehq.org/show_bug.cgi?id=35940
--- Comment #3 from Carlo Bramini carlo.bramix@libero.it --- According to several sources including:
https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html
https://msdn.microsoft.com/en-us/library/36k2cdd4.aspx
I'm also able to bypass the problem by simply deleting from the generated Makefile the '-I' option that points to the source directory. Actually, the #include statement with quotes points to the directory containing the current source file, so adding that '-I' option here is not only redundant but it's even a damage because the inclusions made with quotes and the ones made with angle brackets will have the same effect.
I did some experiments, by trying to compile with "hacked" Makefile in different conditions: the server is correctly compiled, both in my CYGWIN environment and into Ubuntu 12.04. I also tried to configure and to compile the WINE server outside the source tree, no problems found.
But I have some difficulties to understand where I must do a fix for removing that option from the generated Makefile for the server, if you could give me some tips I could try to provide a patch. Thank you.