changeset 24285:28b8ede0d2b9 v8.2.2683

patch 8.2.2683: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/b91d3f857fb6aadbbc01f80f775967bb40d361de Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 1 13:17:50 2021 +0200 patch 8.2.2683: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Apr 2021 13:30:03 +0200
parents 23d777ef9e50
children 6b4e26be980f
files src/version.c src/vim9script.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2683,
+/**/
     2682,
 /**/
     2681,
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -31,6 +31,7 @@ in_vim9script(void)
 		|| (cmdmod.cmod_flags & CMOD_VIM9CMD);
 }
 
+#if defined(FEAT_EVAL) || defined(PROTO)
 /*
  * Return TRUE if the current script is Vim9 script.
  * This also returns TRUE in a legacy function in a Vim9 script.
@@ -42,6 +43,7 @@ current_script_is_vim9(void)
 	    && SCRIPT_ITEM(current_sctx.sc_sid)->sn_version
 						       == SCRIPT_VERSION_VIM9;
 }
+#endif
 
 /*
  * ":vim9script".