# HG changeset patch # User Bram Moolenaar # Date 1617276603 -7200 # Node ID 28b8ede0d2b961c4527bc1d6a4781051920d1103 # Parent 23d777ef9e50061d0fd8d3a5bb4deeb4a2f6465b patch 8.2.2683: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/b91d3f857fb6aadbbc01f80f775967bb40d361de Author: Bram Moolenaar 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. diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/vim9script.c b/src/vim9script.c --- 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".