X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest.priv.h;h=ee3aced074100d328c8c704c6c728dbceceaaf71;hp=eec2b76824cd50483bff4f62c92b7ad7504ad637;hb=b802d89ac4a8abdc19fd39ec9bdc9a300c3dd181;hpb=952539d2f6aa5a3a29adc54488b0d3b66121c888 diff --git a/test/test.priv.h b/test/test.priv.h index eec2b768..ee3aced0 100644 --- a/test/test.priv.h +++ b/test/test.priv.h @@ -29,7 +29,7 @@ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: test.priv.h,v 1.117 2013/02/10 01:00:04 tom Exp $ */ +/* $Id: test.priv.h,v 1.119 2013/09/07 18:49:43 tom Exp $ */ #ifndef __TEST_PRIV_H #define __TEST_PRIV_H 1 @@ -607,6 +607,16 @@ extern char *strnames[], *strcodes[], *strfnames[]; #define TIGETSTR(ti,tc) tgetstr(tc,&area_pointer) #endif +/* + * So far (2013 - more than ten years), only ncurses implements + * use_extended_names(). + */ +#if defined(NCURSES_VERSION) && defined(HAVE_TERM_ENTRY_H) && HAVE_TERM_ENTRY_H +#define NCURSES_XNAMES 1 +#else +#define NCURSES_XNAMES 0 +#endif + /* ncurses implements tparm() with varargs, X/Open with a fixed-parameter list * (which is incompatible with legacy usage, doesn't solve any problems). */ @@ -646,12 +656,12 @@ extern char *strnames[], *strcodes[], *strfnames[]; #ifdef WINVER # if WINVER < 0x0501 # error WINVER must at least be 0x0501 -# endif +# endif #else # define WINVER 0x0501 #endif #include -#include /* for struct timeval */ +#include /* for struct timeval */ #undef sleep #define sleep(n) Sleep((n) * 1000) #define SIGHUP 1