Otherwise WINE compilation with 32bit gcc gets broken (not yet 100%
confirmed, see the discussion with Wylda on wine-devel mailing
list).
Small patch to test for the issue -
Now i can confirm for sure, that simple testcase bug_test.patch fails here as in Austin's case:
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O2 -o adsiid.o adsiid.c
In file included from bug_test.c:8:
../include/winternl.h:2361: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winternl.h:2531: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winternl.h:2532: error: expected declaration specifiers or ‘...’ before ‘va_list’
In file included from bug_test.c:9:
../include/winbase.h:1578: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winbase.h:1579: error: expected declaration specifiers or ‘...’ before ‘va_list’
make[1]: *** [bug_test.o] Error 1
Including "winternl.h" before "winbase.h" and "winuser.h" must have
caused the issue.
Vincas could you open a bug for that? You probably know most about this issue ;)
Thanks Vincas & Austin! W.