diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-25 11:47:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-25 11:47:39 +0100 |
commit | 813196784ad2a3a8cd65be5e975769d9768a728e (patch) | |
tree | bd3ee6d67c9cc4b0a3def2af4197853055012c9f /src | |
parent | a09bee322e605c8a076fa23c3d3259495a1129d2 (diff) | |
download | vim-git-813196784ad2a3a8cd65be5e975769d9768a728e.tar.gz |
patch 8.2.2042: build failure with +profile but without +reltimev8.2.2042
Problem: Build failure with +profile but without +reltime.
Solution: Adjust #ifdef. (Christian Brabandt, closes #7361)
Diffstat (limited to 'src')
-rw-r--r-- | src/syntax.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 2245dc625..f4acc7ed9 100644 --- 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 index ab2300bd4..fcd7243c8 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 */ /**/ + 2042, +/**/ 2041, /**/ 2040, |