diff src/term.c @ 12634:94566ecb55f0 v8.0.1195

patch 8.0.1195: can't build on MS-Windows commit https://github.com/vim/vim/commit/9377df3ecd0bd3acb5d46cb8af7fe60867f247f2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 13:22:01 2017 +0200 patch 8.0.1195: can't build on MS-Windows Problem: Can't build on MS-Windows. Solution: Adjust #ifdef and add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 13:30:05 +0200
parents b1a7e3968a31
children a715f0b44532
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -125,7 +125,7 @@ static int crv_status = STATUS_GET;
 /* Request Cursor position report: */
 static int u7_status = STATUS_GET;
 
-#ifdef FEAT_TERMINAL
+#  ifdef FEAT_TERMINAL
 /* Request foreground color report: */
 static int rfg_status = STATUS_GET;
 static int fg_r = 0;
@@ -134,7 +134,7 @@ static int fg_b = 0;
 static int bg_r = 255;
 static int bg_g = 255;
 static int bg_b = 255;
-#endif
+#  endif
 
 /* Request background color report: */
 static int rbg_status = STATUS_GET;
@@ -5828,7 +5828,7 @@ check_termcode(
     return 0;			    /* no match found */
 }
 
-#if defined(FEAT_TERMINAL) || defined(PROTO)
+#if (defined(FEAT_TERMINAL) && defined(FEAT_TERMRESPONSE)) || defined(PROTO)
 /*
  * Get the text foreground color, if known.
  */