Permalink
Browse files

patch 8.0.0690: compiler warning on non-Unix system

Problem:    Compiler warning on non-Unix system.
Solution:   Add #ifdef. (John Marriott)
  • Loading branch information...
brammool committed Jun 29, 2017
1 parent a693d05 commit c2226845eb207bcd1a24e1afa941acbfecbc5170
Showing with 7 additions and 3 deletions.
  1. +5 −3 src/term.c
  2. +2 −0 src/version.c
View
@@ -2524,7 +2524,9 @@ out_str_cf(char_u *s)
{
if (s != NULL && *s)
{
#ifdef HAVE_TGETENT
char_u *p;
#endif
#ifdef FEAT_GUI
/* Don't use tputs() when GUI is used, ncurses crashes. */
@@ -2549,7 +2551,7 @@ out_str_cf(char_u *s)
tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
*s = save_c;
out_flush();
#ifdef ELAPSED_FUNC
# ifdef ELAPSED_FUNC
/* Only sleep here if we can limit this happening in
* vim_beep(). */
p = vim_strchr(s, '>');
@@ -2563,10 +2565,10 @@ out_str_cf(char_u *s)
++p;
do_sleep(duration);
}
#else
# else
/* Rely on the terminal library to sleep. */
p = s;
#endif
# endif
break;
}
}
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
690,
/**/
689,
/**/

0 comments on commit c222684

Please sign in to comment.