X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_arrays.c;h=e4b9fb1d391a013f65e0dd4c3a44cd679f40d8b3;hp=ff6a10b0123af67285fd8c9ee861f0ce7c7d3162;hb=aefc1659d732acf7e62c0c78a443d6d8352a3c6e;hpb=4ae6d1c18d0dec956b814865893812655ec3a22c diff --git a/test/test_arrays.c b/test/test_arrays.c index ff6a10b0..e4b9fb1d 100644 --- a/test/test_arrays.c +++ b/test/test_arrays.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_arrays.c,v 1.3 2008/02/09 18:09:43 tom Exp $ + * $Id: test_arrays.c,v 1.5 2010/11/13 19:57:57 tom Exp $ * * Author: Thomas E Dickey * @@ -47,7 +47,8 @@ extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[]; #define USE_TINFO #include -#if defined(NCURSES_VERSION) || !defined(_XOPEN_CURSES) +#if HAVE_TIGETSTR +#if defined(HAVE_CURSES_DATA_BOOLNAMES) || defined(DECL_CURSES_DATA_BOOLNAMES) #define DUMP(name) dump_array(#name, name) @@ -88,3 +89,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) ExitProgram(EXIT_FAILURE); } #endif +#else /* !HAVE_TIGETSTR */ +int +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) +{ + printf("This program requires the terminfo functions such as tigetstr\n"); + ExitProgram(EXIT_FAILURE); +} +#endif /* HAVE_TIGETSTR */