# HG changeset patch # User Bram Moolenaar # Date 1606302004 -3600 # Node ID cb7df44afe7ef6a52bbaebf878e1d2ecd10ecc30 # Parent d46d4c6dde1356f9a44f099e046a726d18f3330e patch 8.2.2042: build failure with +profile but without +reltime Commit: https://github.com/vim/vim/commit/813196784ad2a3a8cd65be5e975769d9768a728e Author: Bram Moolenaar Date: Wed Nov 25 11:47:39 2020 +0100 patch 8.2.2042: build failure with +profile but without +reltime Problem: Build failure with +profile but without +reltime. Solution: Adjust #ifdef. (Christian Brabandt, closes https://github.com/vim/vim/issues/7361) diff --git a/src/syntax.c b/src/syntax.c --- a/src/syntax.c +++ b/src/syntax.c @@ -6707,7 +6707,7 @@ syntime_report(void) { int idx; synpat_T *spp; -# ifdef FEAT_FLOAT +# if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) proftime_T tm; # endif int len; @@ -6737,7 +6737,7 @@ syntime_report(void) p->match = spp->sp_time.match; total_count += spp->sp_time.count; p->slowest = spp->sp_time.slowest; -# ifdef FEAT_FLOAT +# if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); p->average = tm; # endif 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 */ /**/ + 2042, +/**/ 2041, /**/ 2040,