]> granicus.if.org Git - vim/commitdiff
patch 8.2.2042: build failure with +profile but without +reltime v8.2.2042
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 10:47:39 +0000 (11:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 10:47:39 +0000 (11:47 +0100)
Problem:    Build failure with +profile but without +reltime.
Solution:   Adjust #ifdef. (Christian Brabandt, closes #7361)

src/syntax.c
src/version.c

index 2245dc6251d54cfbcc7c510a789cdab8aa34e822..f4acc7ed99fed46b19783202aedff64a316d6ab9 100644 (file)
@@ -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
index ab2300bd4cb7c074742db8573ecb01018018eb20..fcd7243c82b1dfc4cb83af2f438259a0786d25ae 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2042,
 /**/
     2041,
 /**/