X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_terminfo.c;h=721847541aeb8ba6ce1ee688f5324003a4d26ffa;hp=d045fb750404cd574f716dab20bc776bbfdd4914;hb=cf94c7485f7b40ff7870b5bf9a65e7ab87481a76;hpb=ccb812c9ce7d5859d06b01ce88b331b2a70ad520 diff --git a/test/demo_terminfo.c b/test/demo_terminfo.c index d045fb75..72184754 100644 --- a/test/demo_terminfo.c +++ b/test/demo_terminfo.c @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_terminfo.c,v 1.5 2009/07/11 17:39:41 tom Exp $ + * $Id: demo_terminfo.c,v 1.6 2009/07/17 01:02:08 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -42,6 +42,8 @@ #endif #endif +#if defined(HAVE_CURSES_DATA_BOOLNAMES) || defined(DECL_CURSES_DATA_BOOLNAMES) + static bool b_opt = FALSE; static bool f_opt = FALSE; static bool n_opt = FALSE; @@ -291,3 +293,12 @@ main(int argc, char *argv[]) ExitProgram(EXIT_SUCCESS); } + +#else +int +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) +{ + printf("This program requires the terminfo arrays\n"); + ExitProgram(EXIT_FAILURE); +} +#endif