http://bugs.winehq.org/show_bug.cgi?id=26385
Summary: HTTP_ParseDay uses "sun" as variable name, which is GCC reserved word on Solaris Product: Wine Version: 1.3.15 Platform: x86 OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: P2 Component: wininet AssignedTo: wine-bugs@winehq.org ReportedBy: hume-ml+winehq@bofh.ca
in dlls/wininet/http.c, lines 3583 and 3593 have a variable named "sun". Compilation of this file fails with "error: syntax error before numeric constant". This is because "sun" is redefined to "1" by GCC when compiling, because it is GCC running on Solaris (and thus "sun" as in "Sun").
Redefining the variable as "Sun" is sufficient to compile the object. To be more careful, though, I would recommend simply spelling out all the day names.