[Bug 26385] New: HTTP_ParseDay uses "sun" as variable name, which is GCC reserved word on Solaris
wine-bugs at winehq.org
wine-bugs at winehq.org
Fri Mar 11 09:49:59 CST 2011
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 at winehq.org
ReportedBy: hume-ml+winehq at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list