Changeset 280


Ignore:
Timestamp:
Dec 25, 2003, 7:09:58 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • src/caca.c: + Fixed a compilation bug reported by Thomas Klausner <wiz@NetBSD.org>.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r268 r280  
    357357        /* Nothing to do */
    358358    }
    359 #endif
     359    else
     360#endif
     361    {
     362        /* Dummy */
     363    }
    360364}
    361365
     
    464468static void caca_init_terminal(void)
    465469{
    466 #if defined(HAVE_GETENV) && defined(HAVE_PUTENV) \
    467      && (defined(USE_SLANG) || defined(USE_NCURSES))
     470#if defined(HAVE_GETENV) && defined(HAVE_PUTENV)
    468471    char *term, *colorterm, *other;
    469472
    470     if(_caca_driver != CACA_DRIVER_NCURSES &&
    471        _caca_driver != CACA_DRIVER_SLANG)
    472         return;
     473#if defined(USE_SLANG)
     474    if(_caca_driver != CACA_DRIVER_SLANG)
     475#endif
     476#if defined(USE_NCURSES)
     477    if(_caca_driver != CACA_DRIVER_NCURSES)
     478#endif
     479    return;
    473480
    474481    term = getenv("TERM");
Note: See TracChangeset for help on using the changeset viewer.