#2493 closed defect (fixed)
BS1: Solaris x86 build fails: variable name collision
Reported by: | SF/lblume | Owned by: | fingolfin |
---|---|---|---|
Priority: | normal | Component: | Port: Solaris |
Version: | Keywords: | ||
Cc: | Game: |
Description
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.
Ticket imported from: #1428261. Ticket imported from: bugs/2493.
Attachments (1)
Change History (6)
by , 19 years ago
Attachment: | scummvm-0.8.2_solaris10-x86_variable_names.patch added |
---|
comment:1 by , 19 years ago
Owner: | set to |
---|---|
Summary: | Solaris x86 build fails: variable name collision → BS1: Solaris x86 build fails: variable name collision |
comment:3 by , 19 years ago
Owner: | changed from | to
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 by , 6 years ago
Component: | → Ports |
---|
comment:5 by , 6 years ago
Component: | Ports → Port: Solaris |
---|
Note:
See TracTickets
for help on using tickets.
Renames variables SS, DS, and similar to SS_, DS_ ...