changeset 14481:4f5a15867544 v8.1.0254

patch 8.1.0254: cannot build on MS-Windows; unused macro HAVE_HANDLE_DROP commit https://github.com/vim/vim/commit/980bab457ebb4df4b05d54b9d731520774f20d1d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 7 22:42:53 2018 +0200 patch 8.1.0254: cannot build on MS-Windows; unused macro HAVE_HANDLE_DROP Problem: Cannot build on MS-Windows; Unused macro HAVE_HANDLE_DROP. Solution: Adjust #ifdef. Delete the macro.
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Aug 2018 22:45:07 +0200
parents 623dc5f66ff6
children 47bda94ae3b1
files src/main.c src/version.c src/vim.h
diffstat 3 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -706,7 +706,7 @@ vim_main2(void)
 	scroll_region_reset();		/* In case Rows changed */
     scroll_start();	/* may scroll the screen to the right position */
 
-#ifdef FEAT_TITLE
+#if defined(FEAT_TITLE) && (defined(UNIX) || defined(VMS) || defined(MACOS_X))
     term_push_title(SAVE_RESTORE_BOTH);
 #endif
 
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    254,
+/**/
     253,
 /**/
     252,
--- a/src/vim.h
+++ b/src/vim.h
@@ -2548,13 +2548,6 @@ typedef enum {
 #define TERM_START_FORCEIT	2
 #define TERM_START_SYSTEM	4
 
-#if defined(HAVE_DROP_FILE) \
-	|| (defined(FEAT_GUI_GTK) && defined(FEAT_DND)) \
-	|| defined(FEAT_GUI_MSWIN) \
-	|| defined(FEAT_GUI_MAC)
-# define HAVE_HANDLE_DROP
-#endif
-
 // Used for icon/title save and restore.
 #define SAVE_RESTORE_TITLE	1
 #define SAVE_RESTORE_ICON	2