http://bugs.winehq.org/show_bug.cgi?id=27663
Summary: 32bit gcc fails to compile WINE Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: vincas.miliunas@gmail.com
Created an attachment (id=35379) --> (http://bugs.winehq.org/attachment.cgi?id=35379) A test-case that fails to compile
As discovered by Wylda and posted on wine-devel mailing list, 32bit gcc fails to compile a certain include statement sequence I used for my raw input patch.
Message confirming test-case failure - http://www.winehq.org/pipermail/wine-devel/2011-June/090886.html
I fixed it by applying the following modification: -#include <stdlib.h> +#include "config.h" +#include "wine/port.h" + +#include <assert.h> +#include <stdarg.h> #include <stdio.h>
#include "ntstatus.h" #define WIN32_NO_STATUS #include "windef.h" -#include "winnt.h" -#include "winternl.h" #include "winbase.h" #include "winuser.h" +#include "winternl.h"
Looks like including "winternl.h" before "winbase.h" and "winuser.h" is implicitly incorrect.