[ scummvm-Bugs-1428261 ] Solaris x86 build fails: variable name collision

SourceForge.net noreply at sourceforge.net
Thu Feb 9 13:03:10 CET 2006


Bugs item #1428261, was opened at 2006-02-09 13:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1428261&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: laurent (lblume)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solaris x86 build fails: variable name collision

Initial Comment:
On Solaris 10 x86, SS and DS are defined as macros in
/usr/include/sys/regset.h, as well as a buch of other 2
and 3-letter macros.

Since those are used as variable names in ScummVM, it
causes errors at build time: 
sword1/router.cpp:292: error: expected
primary-expression before numeric constant
sword1/router.cpp:292: error: expected `;' before
numeric constant
[...more...]

I attached a very simple patch for ScummVM 0.8.2 that
renames those variables as SS_, DS_, and so on.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1428261&group_id=37116




More information about the Scummvm-tracker mailing list