From 813196784ad2a3a8cd65be5e975769d9768a728e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 25 Nov 2020 11:47:39 +0100 Subject: 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 #7361) --- src/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax.c') 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 -- cgit v1.2.1