Browse Source

* src/caca.c:

+ Fixed a compilation bug reported by Thomas Klausner <wiz@NetBSD.org>.
tags/v0.99.beta14
Sam Hocevar sam 21 years ago
parent
commit
0b9865bb1b
1 changed files with 12 additions and 5 deletions
  1. +12
    -5
      src/caca.c

+ 12
- 5
src/caca.c View File

@@ -356,7 +356,11 @@ void caca_end(void)
{ {
/* Nothing to do */ /* Nothing to do */
} }
else
#endif #endif
{
/* Dummy */
}
} }


/* /*
@@ -463,13 +467,16 @@ static void caca_init_features(void)


static void caca_init_terminal(void) static void caca_init_terminal(void)
{ {
#if defined(HAVE_GETENV) && defined(HAVE_PUTENV) \
&& (defined(USE_SLANG) || defined(USE_NCURSES))
#if defined(HAVE_GETENV) && defined(HAVE_PUTENV)
char *term, *colorterm, *other; char *term, *colorterm, *other;


if(_caca_driver != CACA_DRIVER_NCURSES &&
_caca_driver != CACA_DRIVER_SLANG)
return;
#if defined(USE_SLANG)
if(_caca_driver != CACA_DRIVER_SLANG)
#endif
#if defined(USE_NCURSES)
if(_caca_driver != CACA_DRIVER_NCURSES)
#endif
return;


term = getenv("TERM"); term = getenv("TERM");
colorterm = getenv("COLORTERM"); colorterm = getenv("COLORTERM");


Loading…
Cancel
Save