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:
parent
a693d0584b
commit
c2226845eb
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
690,
|
||||
/**/
|
||||
689,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user