X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_terminfo.c;h=239739a47a8f36ac5fedf05d932d257677070df2;hp=28c79f964100abe2315aab08343879cd6ef19ff7;hb=ab61bfec8cb0c26638ea53ceadcd17048ee02996;hpb=4ceb04b5e19df8964f98c7675d9448c205a2053e diff --git a/test/demo_terminfo.c b/test/demo_terminfo.c index 28c79f96..239739a4 100644 --- a/test/demo_terminfo.c +++ b/test/demo_terminfo.c @@ -29,20 +29,19 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_terminfo.c,v 1.16 2013/01/19 19:30:58 tom Exp $ + * $Id: demo_terminfo.c,v 1.19 2013/09/28 21:50:01 tom Exp $ * * A simple demo of the terminfo interface. */ #define USE_TINFO #include -#ifdef NCURSES_VERSION -#if !(defined(HAVE_TERM_ENTRY_H) && HAVE_TERM_ENTRY_H) -#undef NCURSES_XNAMES -#define NCURSES_XNAMES 0 -#endif #if NCURSES_XNAMES +#if HAVE_TERM_ENTRY_H #include +#else +#undef NCURSES_XNAMES +#define NCURSES_XNAMES 0 #endif #endif @@ -388,7 +387,7 @@ main(int argc, char *argv[]) } } -#ifdef NCURSES_VERSION +#if NCURSES_XNAMES use_extended_names(xy_opt); #endif