Compare initscr to NULL not ERR. Add FreeBSD tag.

PR:		19044
This commit is contained in:
David Malone 2001-03-05 11:54:27 +00:00
parent aa09f2ccf6
commit 48561791ce

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* @(#)player.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
*/
#include <curses.h>
@ -91,9 +92,9 @@
#define SLOT_R (SLOT_L+SLOT_X-1)
#ifdef SIGTSTP
#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0)
#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0)
#else
#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0)
#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0)
#endif
WINDOW *view_w;