Skip to content

Commit c222684

Browse files
committed
patch 8.0.0690: compiler warning on non-Unix system
Problem: Compiler warning on non-Unix system. Solution: Add #ifdef. (John Marriott)
1 parent a693d05 commit c222684

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/term.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,9 @@ out_str_cf(char_u *s)
25242524
{
25252525
if (s != NULL && *s)
25262526
{
2527+
#ifdef HAVE_TGETENT
25272528
char_u *p;
2529+
#endif
25282530

25292531
#ifdef FEAT_GUI
25302532
/* Don't use tputs() when GUI is used, ncurses crashes. */
@@ -2549,7 +2551,7 @@ out_str_cf(char_u *s)
25492551
tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
25502552
*s = save_c;
25512553
out_flush();
2552-
#ifdef ELAPSED_FUNC
2554+
# ifdef ELAPSED_FUNC
25532555
/* Only sleep here if we can limit this happening in
25542556
* vim_beep(). */
25552557
p = vim_strchr(s, '>');
@@ -2563,10 +2565,10 @@ out_str_cf(char_u *s)
25632565
++p;
25642566
do_sleep(duration);
25652567
}
2566-
#else
2568+
# else
25672569
/* Rely on the terminal library to sleep. */
25682570
p = s;
2569-
#endif
2571+
# endif
25702572
break;
25712573
}
25722574
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
690,
767769
/**/
768770
689,
769771
/**/

0 commit comments

Comments
 (0)