From 0b9865bb1b123031523d4ff7cd71cb47a57150c7 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 25 Dec 2003 18:09:58 +0000 Subject: [PATCH] * src/caca.c: + Fixed a compilation bug reported by Thomas Klausner . --- src/caca.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/caca.c b/src/caca.c index 85022ba..4ce7d1f 100644 --- a/src/caca.c +++ b/src/caca.c @@ -356,7 +356,11 @@ void caca_end(void) { /* Nothing to do */ } + else #endif + { + /* Dummy */ + } } /* @@ -463,13 +467,16 @@ static void caca_init_features(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; - 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"); colorterm = getenv("COLORTERM");