0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0690: compiler warning on non-Unix system

Problem:    Compiler warning on non-Unix system.
Solution:   Add #ifdef. (John Marriott)
This commit is contained in:
Bram Moolenaar 2017-06-29 22:27:24 +02:00
parent a693d0584b
commit c2226845eb
2 changed files with 7 additions and 3 deletions

View File

@ -2524,7 +2524,9 @@ out_str_cf(char_u *s)
{ {
if (s != NULL && *s) if (s != NULL && *s)
{ {
#ifdef HAVE_TGETENT
char_u *p; char_u *p;
#endif
#ifdef FEAT_GUI #ifdef FEAT_GUI
/* Don't use tputs() when GUI is used, ncurses crashes. */ /* 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); tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
*s = save_c; *s = save_c;
out_flush(); out_flush();
#ifdef ELAPSED_FUNC # ifdef ELAPSED_FUNC
/* Only sleep here if we can limit this happening in /* Only sleep here if we can limit this happening in
* vim_beep(). */ * vim_beep(). */
p = vim_strchr(s, '>'); p = vim_strchr(s, '>');
@ -2563,10 +2565,10 @@ out_str_cf(char_u *s)
++p; ++p;
do_sleep(duration); do_sleep(duration);
} }
#else # else
/* Rely on the terminal library to sleep. */ /* Rely on the terminal library to sleep. */
p = s; p = s;
#endif # endif
break; break;
} }
} }

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
690,
/**/ /**/
689, 689,
/**/ /**/