diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-01 13:17:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-01 13:17:50 +0200 |
commit | b91d3f857fb6aadbbc01f80f775967bb40d361de (patch) | |
tree | e8bfd8606dbe6156c17e438ead58066fc2b03577 | |
parent | 529fb5a5f62378bbaac00e1ed9b9c32c6e20c1b9 (diff) |
patch 8.2.2683: build failure without the +eval featurev8.2.2683
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9script.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index 54370d3eb2..2161bb9b35 100644 --- 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 index a72ef55095..2f2f2dce67 100644 --- 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". |