X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_arrays.c;h=ff6a10b0123af67285fd8c9ee861f0ce7c7d3162;hp=17a2ab7c6366731073572b473dcb9eb89f122960;hb=ed530db2c5b10aa19d06104dfe82cf248a813860;hpb=17e1f876e3a67019cbd46b02fe28232128ac97b4 diff --git a/test/test_arrays.c b/test/test_arrays.c index 17a2ab7c..ff6a10b0 100644 --- a/test/test_arrays.c +++ b/test/test_arrays.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007 Free Software Foundation, Inc. * + * Copyright (c) 2007,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_arrays.c,v 1.1 2007/08/18 18:02:35 tom Exp $ + * $Id: test_arrays.c,v 1.3 2008/02/09 18:09:43 tom Exp $ * * Author: Thomas E Dickey * @@ -44,8 +44,11 @@ extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[]; */ +#define USE_TINFO #include +#if defined(NCURSES_VERSION) || !defined(_XOPEN_CURSES) + #define DUMP(name) dump_array(#name, name) static void @@ -76,3 +79,12 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) 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