patch 8.1.0991: cannot build with a mix of features
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)
diff --git a/src/diff.c b/src/diff.c
index 336157c..38ae0b4 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -866,7 +866,11 @@
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
+ ;
}
/*