Fix undefined

This commit is contained in:
jl777
2019-02-17 08:10:40 -11:00
parent b95214f57e
commit 2fc487d213
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
#include "cursesd.h" #include "cursesd.h"
static int32_t endwinflag; static int32_t endwinflag;
WINDOW *stdscr; WINDOW *stdscr,*curscr;
int32_t ESCDELAY; int32_t ESCDELAY;
WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x) WINDOW *newwin(int32_t nlines,int32_t ncols,int32_t begin_y,int32_t begin_x)

View File

@@ -263,12 +263,12 @@ int
md_hasclreol() md_hasclreol()
{ {
#if defined(clr_eol) #if defined(clr_eol)
#ifdef NCURSES_VERSION /*#ifdef NCURSES_VERSION
if (cur_term == NULL) if (cur_term == NULL)
return(0); return(0);
//if (cur_term->type.Strings == NULL) //if (cur_term->type.Strings == NULL)
return(0); return(0);
#endif #endif*/
return((clr_eol != NULL) && (*clr_eol != 0)); return((clr_eol != NULL) && (*clr_eol != 0));
#elif defined(__PDCURSES__) #elif defined(__PDCURSES__)
return(TRUE); return(TRUE);