changeset 15848:cea7a0fde805 v8.1.0931

patch 8.1.0931: vtp_working included in GUI build but unused commit https://github.com/vim/vim/commit/6902c0eb27a3e4479445badfef31443f2227fe60 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 16 14:07:37 2019 +0100 patch 8.1.0931: vtp_working included in GUI build but unused Problem: vtp_working included in GUI build but unused. Solution: Adjust #ifdefs. (Ken Takata, closes https://github.com/vim/vim/issues/3971)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Feb 2019 14:15:05 +0100
parents 771cd837098c
children c478f5603556
files src/os_win32.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -186,12 +186,12 @@ static int win32_getattrs(char_u *name);
 static int win32_setattrs(char_u *name, int attrs);
 static int win32_set_archive(char_u *name);
 
-static int vtp_working = 0;
 static int conpty_working = 0;
 static int conpty_stable = 0;
 static void vtp_flag_init();
 
 #ifndef FEAT_GUI_W32
+static int vtp_working = 0;
 static void vtp_init();
 static void vtp_exit();
 static int vtp_printf(char *format, ...);
@@ -7874,14 +7874,14 @@ is_term_win32(void)
     return T_NAME != NULL && STRCMP(T_NAME, "win32") == 0;
 }
 
-#endif
-
     int
 has_vtp_working(void)
 {
     return vtp_working;
 }
 
+#endif
+
     int
 has_conpty_working(void)
 {
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    931,
+/**/
     930,
 /**/
     929,