From ea11064df14466d3c1ae4b818a7b43572b1ba093 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 29 Nov 2003 16:42:35 +0000 Subject: [PATCH] * Fixed a C99ism. --- src/caca.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/caca.c b/src/caca.c index 377f2cb..0b9d69b 100644 --- a/src/caca.c +++ b/src/caca.c @@ -68,6 +68,10 @@ char *_caca_screen; int caca_init(void) { +#if defined(USE_NCURSES) + mmask_t newmask; +#endif + caca_init_terminal(); #if defined(USE_SLANG) @@ -102,8 +106,6 @@ int caca_init(void) SLtt_Term_Cannot_Scroll = 1; #elif defined(USE_NCURSES) - mmask_t newmask; - initscr(); keypad(stdscr, TRUE); nonl();