Skip to content

Commit b822cb0

Browse files
committed
patch 7.4.2122
Problem: Mac: don't get +clipboard in huge build. Solution: Move #define down below including featureh.h
1 parent 9532fe7 commit b822cb0

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

src/version.c

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

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2122,
766768
/**/
767769
2121,
768770
/**/

src/vim.h

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@
9898
# ifndef HAVE_CONFIG_H
9999
# define UNIX
100100
# endif
101-
# if defined(FEAT_SMALL) && !defined(FEAT_CLIPBOARD)
102-
# define FEAT_CLIPBOARD
103-
# endif
104-
# if defined(FEAT_SMALL) && !defined(FEAT_MOUSE)
105-
# define FEAT_MOUSE
106-
# endif
107101
#endif
108102
#if defined(MACOS_X) || defined(MACOS_CLASSIC)
109103
# define MACOS
@@ -180,7 +174,20 @@
180174
#endif
181175

182176

183-
#include "feature.h" /* #defines for optionals and features */
177+
/*
178+
* #defines for optionals and features
179+
* Also defines FEAT_TINY, FEAT_SMALL, etc. when FEAT_HUGE is defined.
180+
*/
181+
#include "feature.h"
182+
183+
#if defined(MACOS_X_UNIX)
184+
# if defined(FEAT_SMALL) && !defined(FEAT_CLIPBOARD)
185+
# define FEAT_CLIPBOARD
186+
# endif
187+
# if defined(FEAT_SMALL) && !defined(FEAT_MOUSE)
188+
# define FEAT_MOUSE
189+
# endif
190+
#endif
184191

185192
/* +x11 is only enabled when it's both available and wanted. */
186193
#if defined(HAVE_X11) && defined(WANT_X11)

0 commit comments

Comments
 (0)