From 67ffb417861a90fd2c1b215a42fd230272ed94cb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 8 Jan 2022 13:36:57 +0000 Subject: patch 8.2.4039: the xdiff library is linked in even when not used Problem: The xdiff library is linked in even when not used. Solution: Use configure to decide whether xdiff object files are included. --- src/feature.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/feature.h') diff --git a/src/feature.h b/src/feature.h index fcd0d4b5cb..b2df6f9a5c 100644 --- a/src/feature.h +++ b/src/feature.h @@ -345,8 +345,9 @@ /* * +diff Displaying diffs in a nice way. * Requires +windows and +autocmd. + * Can be enabled in autoconf already. */ -#if defined(FEAT_NORMAL) +#if defined(FEAT_NORMAL) && !defined(FEAT_DIFF) # define FEAT_DIFF #endif -- cgit v1.2.3