Skip to content

Commit 980bab4

Browse files
committed
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.
1 parent 40385db commit 980bab4

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ vim_main2(void)
706706
scroll_region_reset(); /* In case Rows changed */
707707
scroll_start(); /* may scroll the screen to the right position */
708708

709-
#ifdef FEAT_TITLE
709+
#if defined(FEAT_TITLE) && (defined(UNIX) || defined(VMS) || defined(MACOS_X))
710710
term_push_title(SAVE_RESTORE_BOTH);
711711
#endif
712712

src/version.c

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

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
254,
797799
/**/
798800
253,
799801
/**/

src/vim.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,13 +2548,6 @@ typedef enum {
25482548
#define TERM_START_FORCEIT 2
25492549
#define TERM_START_SYSTEM 4
25502550

2551-
#if defined(HAVE_DROP_FILE) \
2552-
|| (defined(FEAT_GUI_GTK) && defined(FEAT_DND)) \
2553-
|| defined(FEAT_GUI_MSWIN) \
2554-
|| defined(FEAT_GUI_MAC)
2555-
# define HAVE_HANDLE_DROP
2556-
#endif
2557-
25582551
// Used for icon/title save and restore.
25592552
#define SAVE_RESTORE_TITLE 1
25602553
#define SAVE_RESTORE_ICON 2

0 commit comments

Comments
 (0)