summaryrefslogtreecommitdiffstats
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-03 14:42:11 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-03 14:42:11 +0100
commit975880b6e6de473b512995ef87ce072aaca934cf (patch)
treed13ee3177bfa632013b01ff00c93315f8dbbb2ce /src/diff.c
parente21c1580b7acb598a6e3c38565434fe5d0e2ad7a (diff)
patch 8.1.0991: cannot build with a mix of featuresv8.1.0991
Problem: Cannot build with FEAT_EVAL defined and FEAT_SEARCH_EXTRA undefined, and with FEAT_DIFF defined and FEAT_EVAL undefined. Solution: Add a couple of #ifdefs. (closes #4067)
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 336157c6d9..38ae0b47c9 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -866,7 +866,11 @@ theend:
int
diff_internal(void)
{
- return (diff_flags & DIFF_INTERNAL) != 0 && *p_dex == NUL;
+ return (diff_flags & DIFF_INTERNAL) != 0
+#ifdef FEAT_EVAL
+ && *p_dex == NUL
+#endif
+ ;
}
/*