patch 8.0.1147: fail to build with tiny features
Problem: Fail to build with tiny features. (Tony Mechelynck)
Solution: Move #ifdefs.
diff --git a/src/syntax.c b/src/syntax.c
index 4e4548d..fedce8d 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7969,9 +7969,9 @@
}
else if (STRCMP(key, "GUIFG") == 0)
{
+#if defined(FEAT_GUI) || defined(FEAT_EVAL)
char_u **namep = &HL_TABLE()[idx].sg_gui_fg_name;
-#if defined(FEAT_GUI) || defined(FEAT_EVAL)
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
{
if (!init)
@@ -8019,9 +8019,9 @@
}
else if (STRCMP(key, "GUIBG") == 0)
{
+#if defined(FEAT_GUI) || defined(FEAT_EVAL)
char_u **namep = &HL_TABLE()[idx].sg_gui_bg_name;
-#if defined(FEAT_GUI) || defined(FEAT_EVAL)
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
{
if (!init)
@@ -8069,9 +8069,9 @@
}
else if (STRCMP(key, "GUISP") == 0)
{
+#if defined(FEAT_GUI) || defined(FEAT_EVAL)
char_u **namep = &HL_TABLE()[idx].sg_gui_sp_name;
-#if defined(FEAT_GUI) || defined(FEAT_EVAL)
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
{
if (!init)
diff --git a/src/version.c b/src/version.c
index 18e4a86..1880b34 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1147,
+/**/
1146,
/**/
1145,