<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:
nethack.allison
2002-09-06 00:12:44 +00:00
parent 3bacf79700
commit 9ac2c2c576
15 changed files with 59 additions and 59 deletions

View File

@@ -270,16 +270,16 @@ E NEARDATA struct c_color_names {
*const c_silver, *const c_blue, *const c_purple,
*const c_white;
} c_color_names;
#define Black c_color_names.c_black
#define amber c_color_names.c_amber
#define golden c_color_names.c_golden
#define light_blue c_color_names.c_light_blue
#define red c_color_names.c_red
#define green c_color_names.c_green
#define silver c_color_names.c_silver
#define blue c_color_names.c_blue
#define purple c_color_names.c_purple
#define White c_color_names.c_white
#define NH_BLACK c_color_names.c_black
#define NH_AMBER c_color_names.c_amber
#define NH_GOLDEN c_color_names.c_golden
#define NH_LIGHT_BLUE c_color_names.c_light_blue
#define NH_RED c_color_names.c_red
#define NH_GREEN c_color_names.c_green
#define NH_SILVER c_color_names.c_silver
#define NH_BLUE c_color_names.c_blue
#define NH_PURPLE c_color_names.c_purple
#define NH_WHITE c_color_names.c_white
/* The names of the colors used for gems, etc. */
E const char *c_obj_colors[];