<email deleted>
> I'm working on a Nethack port, and one of the header files a > library uses has a structure with a member named "red". Since > includes/decl.h #defines red to something, this totally loses. > > Attached is a patch which fixes the color defines.
This commit is contained in:
@@ -620,7 +620,7 @@ chwepon(otmp, amount)
|
||||
register struct obj *otmp;
|
||||
register int amount;
|
||||
{
|
||||
const char *color = hcolor((amount < 0) ? Black : blue);
|
||||
const char *color = hcolor((amount < 0) ? NH_BLACK : NH_BLUE);
|
||||
const char *xtime;
|
||||
int otyp = STRANGE_OBJECT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user