mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Compare initscr to NULL not ERR. Add FreeBSD tag.
PR: 19044
This commit is contained in:
parent
aa09f2ccf6
commit
48561791ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73723
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user