summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-29 22:27:24 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-29 22:27:24 +0200
commitc2226845eb207bcd1a24e1afa941acbfecbc5170 (patch)
tree47b8c0baf0c4d848c2c007747c6aeb790687cb2e /src/term.c
parenta693d0584b9a7ccce98813dda3a6badb209904c7 (diff)
downloadvim-git-c2226845eb207bcd1a24e1afa941acbfecbc5170.tar.gz
patch 8.0.0690: compiler warning on non-Unix systemv8.0.0690
Problem: Compiler warning on non-Unix system. Solution: Add #ifdef. (John Marriott)
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 0dbe6d500..989d6b7af 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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;
}
}