http://bugs.winehq.org/show_bug.cgi?id=15405
--- Comment #7 from Ilya Sandler ilya.sandler@gmail.com 2008-10-15 21:19:51 --- A bit more information.
The syntax error goes away if I add
#include <winuser.h> (after include <windows.h>)
Apparently that's where constants like WS_POPUP, WS_BORDER are coming from.
Digging a bit deeper: windows.h includes winresrc.h which has a bunch of FIXMEs:
/* FIXME: #include <winuser.rh> */ /* FIXME: #include <commctrl.rh> */ /* FIXME: #include <dde.rh> */ /* FIXME: #include <winnt.rh> */
So it still looks like wine's problem