X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdemo_termcap.c;h=00a64849b1e0090232b3cd62700966daae0d6769;hb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d;hp=e1ce0cda219a5e784b7f4c1d0c0c3df904206faf;hpb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027;p=ncurses.git diff --git a/test/demo_termcap.c b/test/demo_termcap.c index e1ce0cda..00a64849 100644 --- a/test/demo_termcap.c +++ b/test/demo_termcap.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2005-2016,2017 Free Software Foundation, Inc. * + * Copyright (c) 2005-2017,2019 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 * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_termcap.c,v 1.55 2017/09/04 13:28:44 tom Exp $ + * $Id: demo_termcap.c,v 1.57 2019/01/21 22:50:46 tom Exp $ * * A simple demo of the termcap interface. */ @@ -46,9 +46,13 @@ #endif #endif -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) +#if HAVE_NCURSES_TERMCAP_H +#include +#elif HAVE_TERMCAP_H #include #endif +#endif static void failed(const char *) GCC_NORETURN;