changeset 15302:7f42b06b2f72 v8.1.0659

patch 8.1.0659: build failure without the sign feature commit https://github.com/vim/vim/commit/ced198d4b4efae75417e4366354679db2d0ec68e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 29 20:04:40 2018 +0100 patch 8.1.0659: build failure without the sign feature Problem: Build failure without the sign feature. Solution: Put the sign struct declarations outside of the #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Dec 2018 20:15:05 +0100
parents 86d7dc7fe5ad
children 6d4c7811e078
files src/structs.h src/version.c
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -731,8 +731,6 @@ typedef struct proptype_S
 #define PT_FLAG_INS_START_INCL	1	// insert at start included in property
 #define PT_FLAG_INS_END_INCL	2	// insert at end included in property
 
-
-#if defined(FEAT_SIGNS) || defined(PROTO)
 // Sign group
 typedef struct signgroup_S
 {
@@ -741,10 +739,6 @@ typedef struct signgroup_S
     char_u	sg_name[1];		// sign group name
 } signgroup_T;
 
-// Macros to get the sign group structure from the group name
-#define SGN_KEY_OFF	offsetof(signgroup_T, sg_name)
-#define HI2SG(hi)	((signgroup_T *)((hi)->hi_key - SGN_KEY_OFF))
-
 typedef struct signlist signlist_T;
 
 struct signlist
@@ -758,6 +752,11 @@ struct signlist
     signlist_T  *prev;		/* previous entry -- for easy reordering */
 };
 
+#if defined(FEAT_SIGNS) || defined(PROTO)
+// Macros to get the sign group structure from the group name
+#define SGN_KEY_OFF	offsetof(signgroup_T, sg_name)
+#define HI2SG(hi)	((signgroup_T *)((hi)->hi_key - SGN_KEY_OFF))
+
 // Default sign priority for highlighting
 #define SIGN_DEF_PRIO	10
 
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    659,
+/**/
     658,
 /**/
     657,