]> granicus.if.org Git - nethack/commitdiff
revert fix for #H4041 - decl for has_color()
authorPatR <rankin@nethack.org>
Wed, 27 Jan 2016 01:39:41 +0000 (17:39 -0800)
committerPatR <rankin@nethack.org>
Wed, 27 Jan 2016 01:39:41 +0000 (17:39 -0800)
Since the attempted fix for the warning about has_color() being
implicitly declared introduced a worse problem of conflicting
declaration in cases where it's already declared, back that change
out.

doc/fixes36.1
sys/share/unixtty.c

index d7ce1b127789b4bb45345c3f2311f41986e84196..08440ba5bdde85fec6e58295532cc1cc0b66b83c 100644 (file)
@@ -138,7 +138,6 @@ tty: responding with <return> or <enter> during role, race, &c selection
        behaved same as <escape> to quit; now it will pick [random] instead
 unix/X11: in top level Makefile, some commented out definitions of VARDATND
        misspelled pilemark.xbm (as pilemark.xpm)
-unix/tty: fix compile warning about 'has_colors' for some configurations
 unix: options file with CR+LF line ends and an invalid option line resulted in
        "ad option line: "whatever-the-line-was
        because embedded carriage return character changed cursor's position
index efaa176d0c3be9fb7f3a522fa178ee77fd788b3a..94ffd766dca1efc8a913a6a9182667ddcb89b31c 100644 (file)
@@ -335,9 +335,6 @@ int sco_flag_console = 0;
 int sco_map_valid = -1;
 unsigned char sco_chanmap_buf[BSIZE];
 
-#if defined(TTY_GRAPHICS) && defined(TEXTCOLOR)
-extern int NDECL(has_colors);
-#endif
 void NDECL(sco_mapon);
 void NDECL(sco_mapoff);
 void NDECL(check_sco_console);
@@ -402,9 +399,6 @@ init_sco_cons()
 
 int linux_flag_console = 0;
 
-#if defined(TTY_GRAPHICS) && defined(TEXTCOLOR)
-extern int NDECL(has_colors);
-#endif
 void NDECL(linux_mapon);
 void NDECL(linux_mapoff);
 void NDECL(check_linux_console);