patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
diff --git a/src/misc1.c b/src/misc1.c
index 31cc63b..e43d001 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1896,7 +1896,6 @@
vim_setenv(var, (char_u *)"");
#endif
}
-#endif
/*
@@ -1914,6 +1913,7 @@
&& STRICMP(name, "VIMRUNTIME") == 0)
didset_vimruntime = FALSE;
}
+#endif
/*
* Our portable version of setenv.
@@ -2230,6 +2230,7 @@
}
}
+# if defined(FEAT_SPELL) || defined(PROTO)
/*
* Like line_breakcheck() but check 100 times less often.
*/
@@ -2242,6 +2243,7 @@
ui_breakcheck();
}
}
+#endif
#if defined(VIM_BACKTICK) || defined(FEAT_EVAL) \
|| (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \