changeset 16225:9cbc5ff516ee v8.1.1117

patch 8.1.1117: build failure without the +eval feature commit https://github.com/vim/vim/commit/1cd4dc444ad260e4ff201152ecff2005dbd15410 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 4 19:06:14 2019 +0200 patch 8.1.1117: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Apr 2019 19:15:03 +0200
parents 40bda6354bed
children e1e238ab3300
files src/ex_cmds2.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -5115,6 +5115,7 @@ ex_scriptencoding(exarg_T *eap)
     void
 ex_scriptversion(exarg_T *eap UNUSED)
 {
+#ifdef FEAT_EVAL
     int		nr;
 
     if (!getline_equal(eap->getline, eap->cookie, getsourceline))
@@ -5130,6 +5131,7 @@ ex_scriptversion(exarg_T *eap UNUSED)
 	semsg(_("E999: scriptversion not supported: %d"), nr);
     else
 	current_sctx.sc_version = nr;
+#endif
 }
 
 #if defined(FEAT_EVAL) || defined(PROTO)
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1117,
+/**/
     1116,
 /**/
     1115,